mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
*Move summon water elemental handler to correct place.
--HG-- branch : trunk
This commit is contained in:
@@ -6836,7 +6836,15 @@ void Spell::EffectPlayerPull(uint32 i)
|
||||
if(!unitTarget)
|
||||
return;
|
||||
|
||||
unitTarget->GetMotionMaster()->MoveJump(m_caster->GetPositionX(), m_caster->GetPositionY(), m_caster->GetPositionZ(), float(damage ? damage : unitTarget->GetDistance2d(m_caster)), float(m_spellInfo->EffectMiscValue[i])/10);
|
||||
float speedZ;
|
||||
if(m_spellInfo->EffectMiscValue[i])
|
||||
speedZ = float(m_spellInfo->EffectMiscValue[i])/10;
|
||||
else if(m_spellInfo->EffectMiscValueB[i])
|
||||
speedZ = float(m_spellInfo->EffectMiscValueB[i])/10;
|
||||
else
|
||||
speedZ = 10.0f;
|
||||
float speedXY = m_caster->GetExactDist2d(unitTarget) * 10.0f / speedZ;
|
||||
unitTarget->GetMotionMaster()->MoveJump(m_caster->GetPositionX(), m_caster->GetPositionY(), m_caster->GetPositionZ(), speedXY, speedZ);
|
||||
}
|
||||
|
||||
void Spell::EffectDispelMechanic(uint32 i)
|
||||
|
||||
Reference in New Issue
Block a user