mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Units: Fixed knockback angle calculation for players (#29165)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user