mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/Spells: Fixed spell effect 43 (SPELL_EFFECT_TELEPORT_UNITS_FACE_CASTER) (#25945)
(cherry picked from commit 28353e920b)
This commit is contained in:
@@ -2274,12 +2274,8 @@ void Spell::EffectTeleUnitsFaceCaster()
|
||||
if (unitTarget->IsInFlight())
|
||||
return;
|
||||
|
||||
float dis = effectInfo->CalcRadius(m_caster);
|
||||
|
||||
float fx, fy, fz;
|
||||
m_caster->GetClosePoint(fx, fy, 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);
|
||||
}
|
||||
|
||||
void Spell::EffectLearnSkill()
|
||||
|
||||
Reference in New Issue
Block a user