From 3e0f256c396ebf4fdf2fb90c31f1bd72b211af2e Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 30 Dec 2007 09:42:28 +0000 Subject: 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 --- crawl-ref/source/monstuff.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/monstuff.cc') 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; -- cgit v1.2.3-54-g00ecf