From a1ce5ff5959e08039a732e64a2aa1c44122384c2 Mon Sep 17 00:00:00 2001 From: bash Date: Wed, 6 May 2026 23:33:09 +0200 Subject: [PATCH] fix(Core/Debug): Split Follow whisper into via=mmap and via=follow --- src/Ai/Base/Actions/MovementActions.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ai/Base/Actions/MovementActions.cpp b/src/Ai/Base/Actions/MovementActions.cpp index e42ebe833..76ccc9405 100644 --- a/src/Ai/Base/Actions/MovementActions.cpp +++ b/src/Ai/Base/Actions/MovementActions.cpp @@ -1264,8 +1264,6 @@ bool MovementAction::Follow(Unit* target, float distance, float angle) return false; } - EmitDebugMove("Follow", "follow", target->GetPositionX(), target->GetPositionY(), target->GetPositionZ()); - /* if (!bot->InBattleground() && ServerFacade::instance().IsDistanceLessOrEqualThan(ServerFacade::instance().GetDistance2d(bot, target->GetPositionX(), @@ -1339,6 +1337,8 @@ bool MovementAction::Follow(Unit* target, float distance, float angle) if (ServerFacade::instance().IsDistanceGreaterOrEqualThan(ServerFacade::instance().GetDistance2d(bot, target), sPlayerbotAIConfig.sightDistance)) { + EmitDebugMove("Follow", "mmap", target->GetPositionX(), target->GetPositionY(), target->GetPositionZ()); + if (target->GetGUID().IsPlayer()) { Player* pTarget = (Player*)target; @@ -1424,6 +1424,7 @@ bool MovementAction::Follow(Unit* target, float distance, float angle) if (bot->GetMotionMaster()->GetCurrentMovementGeneratorType() != FOLLOW_MOTION_TYPE) bot->GetMotionMaster()->Clear(); + EmitDebugMove("Follow", "follow", target->GetPositionX(), target->GetPositionY(), target->GetPositionZ()); bot->GetMotionMaster()->MoveFollow(target, distance, angle); return true; }