From cc9818a6a3bc6a91ddb0f2fb92fe97d96af38d0e Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 30 May 2022 16:14:48 -0400 Subject: [PATCH] Core/Spells: Add one more allowed case for CastSpellTargetArg constructor Port From (https://github.com/TrinityCore/TrinityCore/commit/8c63d201900d80896d68da72f0bc7762a5df4c75) --- Source/Game/Spells/Spell.cs | 3 +++ 1 file changed, 3 insertions(+) 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)