From 719832c605823b3685b7c2c15b0625a9c5826dd5 Mon Sep 17 00:00:00 2001 From: bo Date: Thu, 16 Jul 2026 20:30:34 -0500 Subject: [PATCH] fix for pets swimming with master --- src/game/MotionGenerators/PathFinder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/MotionGenerators/PathFinder.cpp b/src/game/MotionGenerators/PathFinder.cpp index 27fed2f05..bed203faa 100644 --- a/src/game/MotionGenerators/PathFinder.cpp +++ b/src/game/MotionGenerators/PathFinder.cpp @@ -290,7 +290,7 @@ void PathFinder::BuildPolyPath(const Vector3& startPos, const Vector3& endPos) const Creature* owner = m_sourceUnit->ToCreature(); Vector3 p = (distToStartPoly > 7.0f) ? startPos : endPos; - if (m_sourceUnit->GetMap()->GetTerrain()->IsUnderWater(p.x, p.y, p.z)) + if (m_sourceUnit->GetMap()->GetTerrain()->IsInWater(p.x, p.y, p.z + 1.0)) { DEBUG_FILTER_LOG(LOG_FILTER_PATHFINDING, "++ BuildPolyPath :: underWater case for %s\n", m_sourceUnit->GetGuidStr().c_str()); if (owner->CanSwim())