1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

only blocking non positive spells; counterstrike

This commit is contained in:
Laserlicht
2024-09-21 23:50:35 +02:00
parent 43666ec987
commit 899d3a14a0
3 changed files with 4 additions and 3 deletions

View File

@@ -794,7 +794,7 @@ DamageEstimation CBattleInfoCallback::battleEstimateDamage(const BattleAttackInf
if (!bai.defender->ableToRetaliate())
return ret;
if (bai.attacker->hasBonusOfType(BonusType::BLOCKS_RETALIATION))
if (bai.attacker->hasBonusOfType(BonusType::BLOCKS_RETALIATION) || bai.attacker->hasBonusOfType(BonusType::INVINCIBLE))
return ret;
//TODO: rewrite using boost::numeric::interval