From 7dc03cce157bc515526bd215d6e4c3b8250183ee Mon Sep 17 00:00:00 2001 From: M'Dic Date: Fri, 26 Aug 2022 15:27:21 -0400 Subject: [PATCH] update (detection): fix false hit --- src/AnticheatMgr.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 5f829ac..449ae79 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -308,6 +308,9 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo, if (!distance2D) return; + if (!player->HasUnitMovementFlag(MOVEMENTFLAG_DISABLE_GRAVITY) && movementInfo.jump.zspeed < -10.0f) + return; + if (ground_Z > 5.0f && movementInfo.pos.GetPositionZ() >= player->GetPositionZ()) { if (sConfigMgr->GetOption("Anticheat.WriteLog", true))