From 5be3f5acca7a696b965939277c5298bc9a36c67f Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 4 Sep 2023 11:41:54 -0400 Subject: [PATCH] Core/Units: Fixed knockback angle calculation for players Port From (https://github.com/TrinityCore/TrinityCore/commit/d3bc5ebf1627527de638c4e686d5b42ebfd849b3) --- Source/Game/Entities/Unit/Unit.Movement.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Entities/Unit/Unit.Movement.cs b/Source/Game/Entities/Unit/Unit.Movement.cs index 2c4b6a137..05ff35a56 100644 --- a/Source/Game/Entities/Unit/Unit.Movement.cs +++ b/Source/Game/Entities/Unit/Unit.Movement.cs @@ -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;