Fix knockback vertical speed

This commit is contained in:
Yunfan Li
2024-07-31 23:32:34 +08:00
parent 01a6af7aa3
commit 5f117eb9d1

View File

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