mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
fix(mcp): Use walking speed for bot movement instead of default run speed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user