Core/Spells: use CalculateJumpSpeeds for pull effects as well

This commit is contained in:
Ovahlord committed 2019-05-16 23:20:36 +02:00
1 parent 7174df705a
commit 6c4d1486c3
1 file changed
+2 -3
+2 -3
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);
}