From 678d183f62cb442aa875d8b15434fe6dfe4f824e Mon Sep 17 00:00:00 2001 From: MDIC Date: Thu, 31 Mar 2022 07:08:36 -0400 Subject: [PATCH] add (false positive reduction ) z-axis water walking may trigger z-axis, ensure if u are dead u dont get flagged for it --- src/AnticheatMgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 78c2a80..255bbc9 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -191,6 +191,10 @@ void AnticheatMgr::ZAxisHackDetection(Player* player, MovementInfo movementInfo) if (!sConfigMgr->GetOption("Anticheat.DetectZaxisHack", true)) return; + // if we are a ghost we can walk on water may false flag z -axis + if (player->HasAuraType(SPELL_AURA_GHOST)) + return; + if (movementInfo.HasMovementFlag(MOVEMENTFLAG_CAN_FLY | MOVEMENTFLAG_FLYING)) return;