summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index fb6ea3a03d..c2b93ebb82 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -4725,6 +4725,10 @@ void melee_attack::mons_perform_attack_rounds()
if (miscast_target == attacker)
do_miscast();
+
+ // Miscast might haved killed the attacker.
+ if (!attacker->alive())
+ break;
}
item_def *weap = atk->mslot_item(MSLOT_WEAPON);