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

(cherry picked from commit 3f55647b3e)
This commit is contained in:
Shauren
2022-04-01 20:33:46 +02:00
parent 98e848436d
commit 8c63d20190

View File

@@ -8906,7 +8906,10 @@ CastSpellTargetArg::CastSpellTargetArg(WorldObject* target)
Targets.emplace();
Targets->SetGOTarget(goTarget);
}
// error when targeting anything other than units and gameobjects
}
else
Targets.emplace(); // nullptr is allowed
}
CastSpellExtraArgs& CastSpellExtraArgs::SetTriggeringSpell(Spell const* triggeringSpell)