diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index 8c825dc70..7d5f1fdab 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -9013,8 +9013,11 @@ namespace Game.Spells Targets = new(); Targets.SetGOTarget(goTarget); } + // error when targeting anything other than units and gameobjects } } + else + Targets = new(); // nullptr is allowed } public CastSpellTargetArg(Item itemTarget)