From 63dec836a115cdd5b3bfe9fd51458bfa0848dac0 Mon Sep 17 00:00:00 2001 From: MDIC Date: Mon, 18 Apr 2022 08:36:24 -0400 Subject: [PATCH] Update: improved flight hack detection --- src/AnticheatMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index d304a91..3101ac6 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -128,7 +128,7 @@ void AnticheatMgr::FlyHackDetection(Player* player, MovementInfo movementInfo) bool stricterChecks = true; if (sConfigMgr->GetOption("Anticheat.StricterFlyHackCheck", false)) { - stricterChecks = !(movementInfo.HasMovementFlag(MOVEMENTFLAG_ASCENDING) && !player->IsInWater()); + stricterChecks = !(movementInfo.HasMovementFlag(MOVEMENTFLAG_ASCENDING | MOVEMENTFLAG_DESCENDING) && !player->IsInWater()); } if (!movementInfo.HasMovementFlag(MOVEMENTFLAG_CAN_FLY) && !movementInfo.HasMovementFlag(MOVEMENTFLAG_FLYING) && stricterChecks)