move on slope

This commit is contained in:
Yunfan Li
2023-08-29 12:47:54 +08:00
parent 5599db59da
commit b2ec444e4e

View File

@@ -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) {