Core/Position: Refactor GetAngle -> GetAbsoluteAngle because code clarity is good.
Port From (https://github.com/TrinityCore/TrinityCore/commit/bc89e1cdb0da10e53cc9fa4a97565c05bb4c052e)
This commit is contained in:
@@ -192,7 +192,7 @@ namespace Game.Movement
|
||||
|
||||
public void SetFacing(Unit target)
|
||||
{
|
||||
args.facing.angle = unit.GetAngle(target);
|
||||
args.facing.angle = unit.GetAbsoluteAngle(target);
|
||||
args.facing.target = target.GetGUID();
|
||||
args.facing.type = MonsterMoveType.FacingTarget;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user