diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-04-27 16:11:18 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-04-27 16:11:18 +0200 |
commit | 53f8530f88ad067069b75e2bbcdfaa26b87c349c (patch) | |
tree | 6546437729731827791c4a4f8a61e012adde5c11 /crawl-ref/source/fineff.cc | |
parent | cc2681618618bb56eaab17bf441cf9201916d88c (diff) | |
download | crawl-ref-53f8530f88ad067069b75e2bbcdfaa26b87c349c.tar.gz crawl-ref-53f8530f88ad067069b75e2bbcdfaa26b87c349c.zip |
Fix a crash when a monster with Injury Mirror dies.
Don't unnecessarily call the foreign object, too.
Diffstat (limited to 'crawl-ref/source/fineff.cc')
-rw-r--r-- | crawl-ref/source/fineff.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/fineff.cc b/crawl-ref/source/fineff.cc index adf246d393..aba8500c3f 100644 --- a/crawl-ref/source/fineff.cc +++ b/crawl-ref/source/fineff.cc @@ -80,12 +80,12 @@ void fire_final_effects() if (!attacker || attacker == defender || !attacker->alive()) continue; // defender being dead is ok, if we killed them we still suffer - if (attacker->atype() == ACT_PLAYER) + if (fe.att == MID_PLAYER) { mpr("It reflects your damage back at you!"); ouch(fe.x, NON_MONSTER, KILLED_BY_REFLECTION); } - else if (defender->atype() == ACT_PLAYER) + else if (fe.def == MID_PLAYER) { simple_god_message(" mirrors your injury!"); #ifndef USE_TILE |