From b2ec444e4ef8041b0fab554959d20e10adf3fc46 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Tue, 29 Aug 2023 12:47:54 +0800 Subject: [PATCH] move 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 c7edccd3..93521494 100644 --- a/src/strategy/actions/MovementActions.cpp +++ b/src/strategy/actions/MovementActions.cpp @@ -146,7 +146,7 @@ bool MovementAction::MoveTo(uint32 mapId, float x, float y, float z, bool idle, // if (bot->Unit::IsFalling()) { // bot->Say("I'm falling", LANG_UNIVERSAL); // } - float modified_z = z + 0.5f; + float modified_z = z + 5.0f; bot->UpdateAllowedPositionZ(x, y, modified_z); // prevent falling when bot on slope if (modified_z < z - 20.0f) {