From 7d6b5fbe762b671744279fdaeefb2f6350734452 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 13 Jun 2023 05:25:39 -0400 Subject: [PATCH] Core/Spells: Allow passing SpellDestination to CastSpell to target locations on a transport Port From (https://github.com/TrinityCore/TrinityCore/commit/9c393a40e2133bdd59d1ff336a467620364bee85) --- Source/Game/Spells/Spell.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index a7c9f4213..9ee111ed7 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -9241,6 +9241,12 @@ namespace Game.Spells Targets.SetDst(dest); } + public CastSpellTargetArg(SpellDestination dest) + { + Targets = new(); + Targets.SetDst(dest); + } + public CastSpellTargetArg(SpellCastTargets targets) { Targets = new();