Update (detection): False Flag reduction

This commit is contained in:
MDIC
2022-08-10 13:35:18 -04:00
parent 7361818891
commit 54ba492840

View File

@@ -375,7 +375,7 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn
if (player->duel)
{
if ((xDiff >= 50.0f || yDiff >= 50.0f || zDiff >= 10.0f) && !player->CanTeleport())
if ((xDiff >= 50.0f || yDiff >= 50.0f || zDiff >= 10.0f && !player->IsFlying()) && !player->CanTeleport())
{
Player* opponent = player->duel->Opponent;
@@ -401,7 +401,7 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn
player->SetCanTeleport(false);
}
if ((xDiff >= 50.0f || yDiff >= 50.0f || zDiff >= 10.0f) && !player->CanTeleport())
if ((xDiff >= 50.0f || yDiff >= 50.0f || zDiff >= 10.0f && !player->IsFlying()) && !player->CanTeleport())
{
if (m_Players[key].GetTotalReports() > sConfigMgr->GetOption<uint32>("Anticheat.ReportsForIngameWarnings", 70))
{