From 5f117eb9d1fe9e1191068e4b6401847ace220af7 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Wed, 31 Jul 2024 23:32:34 +0800 Subject: [PATCH] Fix knockback vertical speed --- src/PlayerbotAI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index f3cd2996..8b5aa806 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -834,9 +834,9 @@ void PlayerbotAI::HandleBotOutgoingPacket(WorldPacket const& packet) float vcos, vsin, horizontalSpeed, verticalSpeed = 0.f; p >> guid.ReadAsPacked() >> counter >> vcos >> vsin >> horizontalSpeed >> verticalSpeed; - // if (horizontalSpeed <= 0.1f) { - // horizontalSpeed = 0.11f; - // } + if (horizontalSpeed <= 0.1f) { + horizontalSpeed = 0.11f; + } verticalSpeed = -verticalSpeed; // stop casting