mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
fix (module\detection): Further Z-Axis rework
This commit is contained in:
@@ -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.
|
// 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
|
// 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;
|
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
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user