[Knockback] Fix knockback causing stuck in Ahnqiraj

This commit is contained in:
Yunfan Li
2024-09-25 00:28:51 +08:00
parent 1386367e9b
commit 0d9f2ee7ba

View File

@@ -1093,7 +1093,9 @@ void PlayerbotAI::HandleBotOutgoingPacket(WorldPacket const& packet)
horizontalSpeed = 0.11f;
}
verticalSpeed = -verticalSpeed;
// high vertical may result in stuck as bot can not handle gravity
if (verticalSpeed > 35.0f)
break;
// stop casting
InterruptSpell();