From 971e4ca792042d987cd898ae8144f849da188f2f Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sun, 28 Dec 2008 09:52:52 +0000 Subject: Make mummy death curses work when killed by the player via the new beam code. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8003 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monstuff.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/monstuff.cc') diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 16f2c8f570..da64131419 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -820,6 +820,10 @@ static void _mummy_curse(monsters* monster, killer_type killer, int index) return; } + // beam code might give an index of MHITYOU for the player. + if (YOU_KILL(killer)) + index = NON_MONSTER; + // Killed by a Zot trap, a god, etc. if (index != NON_MONSTER && invalid_monster_index(index)) return; -- cgit v1.2.3-54-g00ecf