1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-15 11:46:56 +02:00

Do not apply Fire Shield effect that deals 0 damage

This commit is contained in:
Ivan Savenko 2023-01-04 17:55:19 +02:00
parent 397ea90040
commit a1eaf4d9c8

View File

@ -1180,6 +1180,8 @@ void CGameHandler::makeAttack(const CStack * attacker, const CStack * defender,
//FIXME: add custom effect on actor
}
if (totalDamage > 0)
{
BattleStackAttacked bsa;
bsa.flags |= BattleStackAttacked::FIRE_SHIELD;
@ -1202,6 +1204,7 @@ void CGameHandler::makeAttack(const CStack * attacker, const CStack * defender,
}
addGenericKilledLog(blm, attacker, bsa.killedAmount, false);
}
}
sendAndApply(&blm);