mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Core/Unit): Call UpdatePosition() for pets as well (#23971)
This commit is contained in:
@@ -628,7 +628,7 @@ void Unit::UpdateSplinePosition()
|
||||
//if (HasUnitState(UNIT_STATE_CANNOT_TURN))
|
||||
// loc.orientation = GetOrientation();
|
||||
|
||||
if (IsPlayer())
|
||||
if (IsPlayer() || IsPet())
|
||||
UpdatePosition(loc.x, loc.y, loc.z, loc.orientation);
|
||||
else
|
||||
ToCreature()->SetPosition(loc.x, loc.y, loc.z, loc.orientation);
|
||||
|
||||
Reference in New Issue
Block a user