fix (module\detection): Further Z-Axis rework

This commit is contained in:
MDIC
2022-04-27 17:25:07 -04:00
parent 02c902440b
commit 2139734662

View File

@@ -241,7 +241,7 @@ void AnticheatMgr::ZAxisHackDetection(Player* player, MovementInfo movementInfo)
// We want to exclude this LiquidStatus from detection because it leads to false positives on boats, docks etc.
// Basically everytime you stand on a game object in water
if (player->GetLiquidData().Status == LIQUID_MAP_ABOVE_WATER)
if (player->GetLiquidData().Status == LIQUID_MAP_ABOVE_WATER && movementInfo.HasMovementFlag(MOVEMENTFLAG_ONTRANSPORT))
return;
// This is Black Magic. Check only for x and y difference but no z difference that is greater then or equal to z +2.5 of the ground