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:
joschiwald
2013-09-05 00:59:22 +02:00
parent d5d0802262
commit 7ef1f0738b
4 changed files with 35 additions and 26 deletions

View File

@@ -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())
{