1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-23 12:08:45 +02:00

Fix RANGED_RETALIATION bug

This commit is contained in:
Dydzio 2017-09-04 23:35:48 +02:00
parent 4cab76900f
commit d2e9848443

View File

@ -4009,6 +4009,7 @@ bool CGameHandler::makeBattleAction(BattleAction &ba)
if (destinationStack->hasBonusOfType(Bonus::RANGED_RETALIATION)
&& !stack->hasBonusOfType(Bonus::BLOCKS_RANGED_RETALIATION)
&& destinationStack->ableToRetaliate()
&& gs->curB->battleCanShoot(destinationStack, stack->position)
&& stack->alive()) //attacker may have died (fire shield)
{
BattleAttack bat;