fix(mcp): Use walking speed for bot movement instead of default run speed

This commit is contained in:
2025-12-13 17:12:53 -05:00
parent 009b8dbbdd
commit a3e7574e14

View File

@@ -821,7 +821,9 @@ bool MCPPlayerManager::MoveTo(uint32 sessionId, float x, float y, float z)
TC_LOG_DEBUG("araxia.mcp", "[MCPPlayerManager] Session {}: Moving to ({:.1f}, {:.1f}, {:.1f})",
sessionId, x, y, z);
player->GetMotionMaster()->MovePoint(0, x, y, z);
// Use walking speed for natural movement
float walkSpeed = player->GetSpeed(MOVE_WALK);
player->GetMotionMaster()->MovePoint(0, x, y, z, true, {}, walkSpeed);
return true;
}