fix(Core/Movement): Improved player's pet follow movement. (#8217)

Fixes #8127
This commit is contained in:
UltraNix
2021-10-08 15:13:00 +02:00
committed by GitHub
parent 04e0ac7385
commit 69243c4e5d
2 changed files with 13 additions and 4 deletions

View File

@@ -450,7 +450,7 @@ bool FollowMovementGenerator<T>::DoUpdate(T* owner, uint32 time_diff)
owner->UpdateAllowedPositionZ(x, y, z);
bool success = i_path->CalculatePath(x, y, z, forceDest);
if (!success || i_path->GetPathType() & PATHFIND_NOPATH)
if (!success || (i_path->GetPathType() & PATHFIND_NOPATH && !followingMaster))
{
if (!owner->IsStopped())
owner->StopMoving();