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