add (false positive reduction ) z-axis

water walking may trigger z-axis, ensure if u are dead u dont get flagged for it
This commit is contained in:
MDIC
2022-03-31 07:08:36 -04:00
parent b3acbab636
commit 678d183f62

View File

@@ -191,6 +191,10 @@ void AnticheatMgr::ZAxisHackDetection(Player* player, MovementInfo movementInfo)
if (!sConfigMgr->GetOption<bool>("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;