update (detection): fix false hit

This commit is contained in:
M'Dic
2022-08-26 11:43:30 -04:00
parent c7d6ae5393
commit ab65943a81

View File

@@ -296,6 +296,9 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo,
}
else if (no_fly_auras && no_fly_flags && no_swim_water)
{
if (m_Players[key].GetLastOpcode() == MSG_MOVE_JUMP && !player->IsFalling())
return;
if (ground_Z > 5.0f && movementInfo.pos.GetPositionZ() >= player->GetPositionZ())
{
if (sConfigMgr->GetOption<bool>("Anticheat.WriteLog", true))
@@ -306,6 +309,7 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo,
}
BuildReport(player, JUMP_HACK_REPORT);
}
}
}