Core/Spells: use CalculateJumpSpeeds for pull effects as well
This commit is contained in:
1 parent
7174df705a
commit
6c4d1486c3
1 file changed
+2
-3
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user