Core/Units: Fixed knockback angle calculation for players
Port From (https://github.com/TrinityCore/TrinityCore/commit/d3bc5ebf1627527de638c4e686d5b42ebfd849b3)
This commit is contained in:
@@ -263,7 +263,7 @@ namespace Game.Entities
|
||||
GetMotionMaster().MoveKnockbackFrom(origin, speedXY, speedZ, spellEffectExtraData);
|
||||
else
|
||||
{
|
||||
float o = GetPosition() == origin ? GetOrientation() + MathF.PI : origin.GetRelativeAngle(this);
|
||||
float o = GetPosition() == origin ? GetOrientation() + MathF.PI : origin.GetAbsoluteAngle(this);
|
||||
if (speedXY < 0)
|
||||
{
|
||||
speedXY = -speedXY;
|
||||
|
||||
Reference in New Issue
Block a user