Core/Units: Fixed knockback angle calculation for players (#29165)

This commit is contained in:
Krudor
2023-07-21 20:51:03 +02:00
committed by GitHub
parent 4e7508db7b
commit d3bc5ebf16

View File

@@ -11948,7 +11948,7 @@ void Unit::KnockbackFrom(Position const& origin, float speedXY, float speedZ, Mo
GetMotionMaster()->MoveKnockbackFrom(origin, speedXY, speedZ, spellEffectExtraData);
else
{
float o = GetPosition() == origin ? GetOrientation() + M_PI : origin.GetRelativeAngle(this);
float o = GetPosition() == origin ? GetOrientation() + M_PI : origin.GetAbsoluteAngle(this);
if (speedXY < 0)
{
speedXY = -speedXY;