Core/Movement: remove unnecessary UpdateAllowedPositionZ in FollowMovementGenerator

Already called in GetNearPoint
This commit is contained in:
ccrs
2025-10-25 16:20:16 +02:00
parent 825c88e85a
commit aa8c287b67

View File

@@ -139,9 +139,6 @@ bool FollowMovementGenerator::Update(Unit* owner, uint32 diff)
target->GetNearPoint(owner, x, y, z, _range, target->ToAbsoluteAngle(tAngle));
if (owner->IsHovering())
owner->UpdateAllowedPositionZ(x, y, z);
// pets are allowed to "cheat" on pathfinding when following their master
bool allowShortcut = false;
if (Pet* oPet = owner->ToPet())