1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Counterattack correction. Fixes bug #2501

Creatures should not be able to counterattack multiple times during one opponent attack under any circumstances.
This commit is contained in:
Dydzio 2017-02-10 00:36:15 +01:00 committed by GitHub
parent 53b2add434
commit 86fe44d9ac

View File

@ -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)