mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 09:07:22 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user