Core/Spells: Removed unused variables

This commit is contained in:
Shauren
2011-05-12 10:41:25 +02:00
parent 339e8cb7e0
commit cbee5f956e
+3 -12
View File
@@ -1766,7 +1766,7 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex)
m_caster->RemoveAura(iter);
}
else
iter++;
++iter;
}
return;
}
@@ -1843,17 +1843,11 @@ void Spell::EffectJump(SpellEffIndex effIndex)
if (m_caster->isInFlight())
return;
float x, y, z, o;
float x, y, z;
if (m_targets.getUnitTarget())
{
m_targets.getUnitTarget()->GetContactPoint(m_caster, x, y, z, CONTACT_DISTANCE);
o = m_caster->GetOrientation();
}
else if (m_targets.getGOTarget())
{
m_targets.getGOTarget()->GetContactPoint(m_caster, x, y, z, CONTACT_DISTANCE);
o = m_caster->GetOrientation();
}
else
{
sLog->outError("Spell::EffectJump - unsupported target mode for spell ID %u", m_spellInfo->Id);
@@ -1871,7 +1865,7 @@ void Spell::EffectJumpDest(SpellEffIndex effIndex)
return;
// Init dest coordinates
float x, y, z, o;
float x, y, z;
if (m_targets.HasDst())
{
m_targets.m_dstPos.GetPosition(x, y, z);
@@ -1888,10 +1882,7 @@ void Spell::EffectJumpDest(SpellEffIndex effIndex)
else if (m_caster->GetTypeId() == TYPEID_PLAYER)
pTarget = ObjectAccessor::GetUnit(*m_caster, m_caster->ToPlayer()->GetSelection());
o = pTarget ? pTarget->GetOrientation() : m_caster->GetOrientation();
}
else
o = m_caster->GetOrientation();
}
else
{