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:
parent
4cab76900f
commit
d2e9848443
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user