From e6f1305f015a7b87b47c3591f31662cff9f502d1 Mon Sep 17 00:00:00 2001 From: M'Dic Date: Mon, 20 Mar 2023 12:59:27 -0400 Subject: [PATCH] Update (detection): Add Support Helper to Fly hack --- src/AnticheatMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index ba176dd..84903ea 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -310,7 +310,7 @@ void AnticheatMgr::FlyHackDetection(Player* player, MovementInfo movementInfo) bool stricterChecks = true; if (sConfigMgr->GetOption("Anticheat.StricterFlyHackCheck", false)) { - stricterChecks = !(movementInfo.HasMovementFlag(MOVEMENTFLAG_ASCENDING | MOVEMENTFLAG_DESCENDING) && !player->IsInWater()); + stricterChecks = !(movementInfo.HasMovementFlag(MOVEMENTFLAG_ASCENDING | MOVEMENTFLAG_DESCENDING) && !player->IsInWater() && !player->CanTeleport()); } if (!movementInfo.HasMovementFlag(MOVEMENTFLAG_CAN_FLY) && !movementInfo.HasMovementFlag(MOVEMENTFLAG_FLYING) && stricterChecks)