mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Core/Battlegrounds/IoC: fix fortress teleport pads
(and replace a hack with an other hack) Closes #5846 Closes #7993 Ref #8984
This commit is contained in:
@@ -1133,29 +1133,6 @@ void Spell::EffectTeleportUnits(SpellEffIndex /*effIndex*/)
|
||||
if (!unitTarget || unitTarget->IsInFlight())
|
||||
return;
|
||||
|
||||
// Pre effects
|
||||
switch (m_spellInfo->Id)
|
||||
{
|
||||
case 66550: // teleports outside (Isle of Conquest)
|
||||
if (Player* target = unitTarget->ToPlayer())
|
||||
{
|
||||
if (target->GetTeamId() == TEAM_ALLIANCE)
|
||||
m_targets.SetDst(442.24f, -835.25f, 44.30f, 0.06f, 628);
|
||||
else
|
||||
m_targets.SetDst(1120.43f, -762.11f, 47.92f, 2.94f, 628);
|
||||
}
|
||||
break;
|
||||
case 66551: // teleports inside (Isle of Conquest)
|
||||
if (Player* target = unitTarget->ToPlayer())
|
||||
{
|
||||
if (target->GetTeamId() == TEAM_ALLIANCE)
|
||||
m_targets.SetDst(389.57f, -832.38f, 48.65f, 3.00f, 628);
|
||||
else
|
||||
m_targets.SetDst(1174.85f, -763.24f, 48.72f, 6.26f, 628);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// If not exist data for dest location - return
|
||||
if (!m_targets.HasDst())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user