Core/Units: Fixed knockback angle calculation for players

Port From (https://github.com/TrinityCore/TrinityCore/commit/d3bc5ebf1627527de638c4e686d5b42ebfd849b3)
This commit is contained in:
hondacrx
2023-09-04 11:41:54 -04:00
parent 3461b6fcaa
commit 5be3f5acca
+1 -1
View File
@@ -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;