Core/Spells: Add one more allowed case for CastSpellTargetArg constructor

Port From (https://github.com/TrinityCore/TrinityCore/commit/8c63d201900d80896d68da72f0bc7762a5df4c75)
This commit is contained in:
hondacrx
2022-05-30 16:14:48 -04:00
parent 442da7511f
commit cc9818a6a3
+3
View File
@@ -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)