From 86fe44d9acc66d93fd2a28155c58821b3e9ada0b Mon Sep 17 00:00:00 2001 From: Dydzio Date: Fri, 10 Feb 2017 00:36:15 +0100 Subject: [PATCH] Counterattack correction. Fixes bug #2501 Creatures should not be able to counterattack multiple times during one opponent attack under any circumstances. --- server/CGameHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 875bc698a..8d25d6a7e 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -3953,7 +3953,7 @@ bool CGameHandler::makeBattleAction(BattleAction &ba) } //counterattack - if (destinationStack + if (i == 0 && destinationStack && !stack->hasBonusOfType(Bonus::BLOCKS_RETALIATION) && destinationStack->ableToRetaliate() && stack->alive()) //attacker may have died (fire shield)