Core/Spells: Allow passing SpellDestination to CastSpell to target locations on a transport

This commit is contained in:
Shauren
2023-06-08 18:43:59 +02:00
parent 8cfc8e4141
commit 9c393a40e2

View File

@@ -425,6 +425,11 @@ struct TC_GAME_API CastSpellTargetArg
Targets.emplace();
Targets->SetDst(dest);
}
CastSpellTargetArg(SpellDestination const& dest)
{
Targets.emplace();
Targets->SetDst(dest);
}
CastSpellTargetArg(SpellCastTargets&& targets)
{
Targets.emplace(std::move(targets));