mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Movement: remove unnecessary UpdateAllowedPositionZ in FollowMovementGenerator
Already called in GetNearPoint
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user