From 695d0c83b554d63c7fb5f7550d1593ff87c9d948 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 27 Aug 2023 00:04:38 +0800 Subject: [PATCH] movement on slope --- src/strategy/actions/MovementActions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/actions/MovementActions.cpp b/src/strategy/actions/MovementActions.cpp index aafa7241..c7edccd3 100644 --- a/src/strategy/actions/MovementActions.cpp +++ b/src/strategy/actions/MovementActions.cpp @@ -150,7 +150,7 @@ bool MovementAction::MoveTo(uint32 mapId, float x, float y, float z, bool idle, bot->UpdateAllowedPositionZ(x, y, modified_z); // prevent falling when bot on slope if (modified_z < z - 20.0f) { - modified_z = z + 5.0f; + modified_z = z + 15.0f; bot->UpdateAllowedPositionZ(x, y, modified_z); } z = modified_z;