update (detection): fix false hit

This commit is contained in:
M'Dic
2022-08-26 15:27:21 -04:00
parent d64cdb43d2
commit 7dc03cce15

View File

@@ -308,6 +308,9 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo,
if (!distance2D)
return;
if (!player->HasUnitMovementFlag(MOVEMENTFLAG_DISABLE_GRAVITY) && movementInfo.jump.zspeed < -10.0f)
return;
if (ground_Z > 5.0f && movementInfo.pos.GetPositionZ() >= player->GetPositionZ())
{
if (sConfigMgr->GetOption<bool>("Anticheat.WriteLog", true))