Core/Spells: use CalculateJumpSpeeds for pull effects as well

This commit is contained in:
Ovahlord
2019-05-16 23:20:36 +02:00
parent 7174df705a
commit 6c4d1486c3

View File

@@ -4544,9 +4544,8 @@ void Spell::EffectPullTowards(SpellEffIndex effIndex)
pos.Relocate(m_caster);
}
float speedXY = float(m_spellInfo->Effects[effIndex].MiscValue) * 0.1f;
float speedZ = unitTarget->GetDistance(pos) / speedXY * 0.5f * Movement::gravity;
float speedXY, speedZ;
CalculateJumpSpeeds(effIndex, m_caster->GetExactDist2d(pos), speedXY, speedZ);
unitTarget->GetMotionMaster()->MoveJump(pos, speedXY, speedZ);
}