Core/Spells: Removed unused variables
This commit is contained in:
@@ -1766,7 +1766,7 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex)
|
|||||||
m_caster->RemoveAura(iter);
|
m_caster->RemoveAura(iter);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
iter++;
|
++iter;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1843,17 +1843,11 @@ void Spell::EffectJump(SpellEffIndex effIndex)
|
|||||||
if (m_caster->isInFlight())
|
if (m_caster->isInFlight())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
float x, y, z, o;
|
float x, y, z;
|
||||||
if (m_targets.getUnitTarget())
|
if (m_targets.getUnitTarget())
|
||||||
{
|
|
||||||
m_targets.getUnitTarget()->GetContactPoint(m_caster, x, y, z, CONTACT_DISTANCE);
|
m_targets.getUnitTarget()->GetContactPoint(m_caster, x, y, z, CONTACT_DISTANCE);
|
||||||
o = m_caster->GetOrientation();
|
|
||||||
}
|
|
||||||
else if (m_targets.getGOTarget())
|
else if (m_targets.getGOTarget())
|
||||||
{
|
|
||||||
m_targets.getGOTarget()->GetContactPoint(m_caster, x, y, z, CONTACT_DISTANCE);
|
m_targets.getGOTarget()->GetContactPoint(m_caster, x, y, z, CONTACT_DISTANCE);
|
||||||
o = m_caster->GetOrientation();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sLog->outError("Spell::EffectJump - unsupported target mode for spell ID %u", m_spellInfo->Id);
|
sLog->outError("Spell::EffectJump - unsupported target mode for spell ID %u", m_spellInfo->Id);
|
||||||
@@ -1871,7 +1865,7 @@ void Spell::EffectJumpDest(SpellEffIndex effIndex)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Init dest coordinates
|
// Init dest coordinates
|
||||||
float x, y, z, o;
|
float x, y, z;
|
||||||
if (m_targets.HasDst())
|
if (m_targets.HasDst())
|
||||||
{
|
{
|
||||||
m_targets.m_dstPos.GetPosition(x, y, z);
|
m_targets.m_dstPos.GetPosition(x, y, z);
|
||||||
@@ -1888,10 +1882,7 @@ void Spell::EffectJumpDest(SpellEffIndex effIndex)
|
|||||||
else if (m_caster->GetTypeId() == TYPEID_PLAYER)
|
else if (m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||||
pTarget = ObjectAccessor::GetUnit(*m_caster, m_caster->ToPlayer()->GetSelection());
|
pTarget = ObjectAccessor::GetUnit(*m_caster, m_caster->ToPlayer()->GetSelection());
|
||||||
|
|
||||||
o = pTarget ? pTarget->GetOrientation() : m_caster->GetOrientation();
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
o = m_caster->GetOrientation();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user