From add30b49956e50bbca45f15ae39e12fd4f8b6f67 Mon Sep 17 00:00:00 2001 From: MDIC Date: Wed, 17 Aug 2022 21:24:31 -0400 Subject: [PATCH] update (detection): Fix false hit reduction --- src/AnticheatMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 4c4d4c5..4567340 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -382,7 +382,7 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn float yDiff = fabs(lastY - newY); float zDiff = fabs(lastZ - newZ); - if (movementInfo.HasMovementFlag(MOVEMENTFLAG_FALLING)) + if (player->IsFalling() || player->IsFalling() && player->IsMounted()) return; if (player->duel)