diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-30 09:42:28 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-30 09:42:28 +0000 |
commit | 3e0f256c396ebf4fdf2fb90c31f1bd72b211af2e (patch) | |
tree | 498a25ab9a0eb03f4319c5ae30b55d7338f829f4 /crawl-ref | |
parent | 5cdc214dfd97a588ff443dae8ff1fc513693dae9 (diff) | |
download | crawl-ref-3e0f256c396ebf4fdf2fb90c31f1bd72b211af2e.tar.gz crawl-ref-3e0f256c396ebf4fdf2fb90c31f1bd72b211af2e.zip |
Fixed banished monsters leaving their items behind.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3149 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 2ab5148d34..cd71198007 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -821,7 +821,13 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent) // KILL_RESET monsters no longer lose their whole inventory, only // items they were generated with. if (!monster->needs_transit()) + { + // A banished monster that doesn't go on the transit list + // loses all items. + if (!mons_is_summoned(monster)) + monster->destroy_inventory(); break; + } // Monster goes to the Abyss. monster->flags |= MF_BANISHED; |