mirror of
https://github.com/vcmi/vcmi.git
synced 2025-05-13 22:06:58 +02:00
Fixed crashes on Land Mines / Fire Wall casting.
This commit is contained in:
parent
9277c695a5
commit
e45d174ba5
@ -1332,6 +1332,7 @@ void CBattleInterface::spellCast( const BattleSpellCast * sc )
|
||||
|
||||
if (spell.isDamageSpell() && sc->affectedCres.empty()) //for example Inferno that causes no BattleStackAttacked
|
||||
{
|
||||
if(sc->tile.isValid() && graphics->battleACToDef.count(spell.mainEffectAnim)) //eg. when casting Lind Mine or Fire Wall
|
||||
displayEffect (spell.mainEffectAnim, sc->tile);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user