summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc4
1 files changed, 4 insertions, 0 deletions
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;