From b83c96a59ebe624882b80835030658e1950d0e91 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 24 May 2022 19:16:42 -0400 Subject: [PATCH] Core/Spells: Fixed spell effect 43 (SPELL_EFFECT_TELEPORT_UNITS_FACE_CASTER) Port From (https://github.com/TrinityCore/TrinityCore/commit/23d77ecb8156fd1682649aa9913bb9cc173b60e9) --- Source/Game/Spells/SpellEffects.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index 53cc277ee..3ee698a8a 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -1957,12 +1957,8 @@ namespace Game.Spells if (unitTarget.IsInFlight()) return; - float dis = effectInfo.CalcRadius(m_caster); - - float fx, fy, fz; - m_caster.GetClosePoint(out fx, out fy, out fz, unitTarget.GetCombatReach(), dis); - - unitTarget.NearTeleportTo(fx, fy, fz, -m_caster.GetOrientation(), unitTarget == m_caster); + if (m_targets.HasDst()) + unitTarget.NearTeleportTo(destTarget.GetPositionX(), destTarget.GetPositionY(), destTarget.GetPositionZ(), destTarget.GetAbsoluteAngle(m_caster), unitTarget == m_caster); } [SpellEffectHandler(SpellEffectName.SkillStep)]