mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fixed CID 1375686
This commit is contained in:
parent
f5cdaece6f
commit
25d06c8d70
@ -3982,6 +3982,11 @@ bool CGameHandler::makeBattleAction(BattleAction &ba)
|
||||
complain("Cannot shoot!");
|
||||
break;
|
||||
}
|
||||
if (!destinationStack)
|
||||
{
|
||||
complain("No target to shoot!");
|
||||
break;
|
||||
}
|
||||
|
||||
auto wrapper = wrapAction(ba);
|
||||
|
||||
@ -3995,8 +4000,7 @@ bool CGameHandler::makeBattleAction(BattleAction &ba)
|
||||
}
|
||||
|
||||
//ranged counterattack
|
||||
if (destinationStack
|
||||
&& destinationStack->hasBonusOfType(Bonus::RANGED_RETALIATION)
|
||||
if (destinationStack->hasBonusOfType(Bonus::RANGED_RETALIATION)
|
||||
&& !stack->hasBonusOfType(Bonus::BLOCKS_RANGED_RETALIATION)
|
||||
&& destinationStack->ableToRetaliate()
|
||||
&& stack->alive()) //attacker may have died (fire shield)
|
||||
|
Loading…
Reference in New Issue
Block a user