summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-28 09:52:52 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-28 09:52:52 +0000
commit971e4ca792042d987cd898ae8144f849da188f2f (patch)
tree11b46c474abcd15bf0a2c6f3cfa0f7ba76b171c4 /crawl-ref/source/monstuff.cc
parent96e3458b1062a70ee060d2a77677ab7c0d9e86a5 (diff)
downloadcrawl-ref-971e4ca792042d987cd898ae8144f849da188f2f.tar.gz
crawl-ref-971e4ca792042d987cd898ae8144f849da188f2f.zip
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
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;