mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Do not apply Fire Shield effect that deals 0 damage
This commit is contained in:
@ -1180,6 +1180,8 @@ void CGameHandler::makeAttack(const CStack * attacker, const CStack * defender,
|
|||||||
//FIXME: add custom effect on actor
|
//FIXME: add custom effect on actor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (totalDamage > 0)
|
||||||
|
{
|
||||||
BattleStackAttacked bsa;
|
BattleStackAttacked bsa;
|
||||||
|
|
||||||
bsa.flags |= BattleStackAttacked::FIRE_SHIELD;
|
bsa.flags |= BattleStackAttacked::FIRE_SHIELD;
|
||||||
@ -1202,6 +1204,7 @@ void CGameHandler::makeAttack(const CStack * attacker, const CStack * defender,
|
|||||||
}
|
}
|
||||||
addGenericKilledLog(blm, attacker, bsa.killedAmount, false);
|
addGenericKilledLog(blm, attacker, bsa.killedAmount, false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sendAndApply(&blm);
|
sendAndApply(&blm);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user