mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-17 11:56:46 +02:00
Do not apply Fire Shield effect that deals 0 damage
This commit is contained in:
parent
397ea90040
commit
a1eaf4d9c8
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user