From 9443fbbfd47e2e51e606258aac12584f244f3476 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Tue, 6 Jan 2009 04:33:03 +0000 Subject: Don't use the random_uselessness() miscast effect during arena mode. If a melee miscast kills the attacker don't let it get any more hits in. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8261 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/fight.cc') 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); -- cgit v1.2.3-54-g00ecf