1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Creatures with double strike will not hit 2nd time after blinding

This commit is contained in:
Ivan Savenko 2022-12-16 21:52:46 +02:00
parent 39a54ff8ff
commit a1ab90fb05

View File

@ -4680,8 +4680,8 @@ bool CGameHandler::makeBattleAction(BattleAction &ba)
makeAttack(destinationStack, stack, 0, stack->getPosition(), true, false, true);
}
//move can cause death, eg. by walking into the moat, first strike can cause death as well
if(stack->alive() && destinationStack->alive())
//move can cause death, eg. by walking into the moat, first strike can cause death or paralysis/petrification
if(stack->alive() && !stack->hasBonusOfType(Bonus::NOT_ACTIVE) && destinationStack->alive())
{
makeAttack(stack, destinationStack, (i ? 0 : distance), destinationTile, i==0, false, false);//no distance travelled on second attack
}