Core/Spells: Implemented using db2 PositionFacing for SPELL_EFFECT_LEAP_BACK
Port From (https://github.com/TrinityCore/TrinityCore/commit/7295bfb6a09b25d824889cfb3698a0774fc01b34)
This commit is contained in:
@@ -395,9 +395,8 @@ namespace Game.Entities
|
||||
return true;
|
||||
}
|
||||
|
||||
public void JumpTo(float speedXY, float speedZ, bool forward, Position dest = null)
|
||||
public void JumpTo(float speedXY, float speedZ, float angle, Position dest = null)
|
||||
{
|
||||
float angle = forward ? 0 : MathFunctions.PI;
|
||||
if (dest != null)
|
||||
angle += GetRelativeAngle(dest);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user