From ab65943a81c073dc91aee4e8e3c6597ee45cd0d7 Mon Sep 17 00:00:00 2001 From: M'Dic Date: Fri, 26 Aug 2022 11:43:30 -0400 Subject: [PATCH] update (detection): fix false hit --- src/AnticheatMgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 2166480..49fe4d9 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -296,6 +296,9 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo, } else if (no_fly_auras && no_fly_flags && no_swim_water) { + if (m_Players[key].GetLastOpcode() == MSG_MOVE_JUMP && !player->IsFalling()) + return; + if (ground_Z > 5.0f && movementInfo.pos.GetPositionZ() >= player->GetPositionZ()) { if (sConfigMgr->GetOption("Anticheat.WriteLog", true)) @@ -306,6 +309,7 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo, } BuildReport(player, JUMP_HACK_REPORT); } + } }