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:
parent
53b2add434
commit
86fe44d9ac
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user