summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index c4443068ff..7098bd3260 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -3676,8 +3676,10 @@ static int affect_monster(bolt &beam, monsters *mon)
// now do enchantment affect
int ench_result = affect_monster_enchantment(beam, mon);
- switch(ench_result)
+ if (mon->alive())
{
+ switch (ench_result)
+ {
case MON_RESIST:
if (simple_monster_message(mon, " resists."))
beam.msg_generated = true;
@@ -3689,6 +3691,7 @@ static int affect_monster(bolt &beam, monsters *mon)
default:
update_hurt_or_helped(beam, mon);
break;
+ }
}
return (rangeUsed);