mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
Update (detection): Add Support Helper to Fly hack
This commit is contained in:
@@ -310,7 +310,7 @@ void AnticheatMgr::FlyHackDetection(Player* player, MovementInfo movementInfo)
|
||||
bool stricterChecks = true;
|
||||
if (sConfigMgr->GetOption<bool>("Anticheat.StricterFlyHackCheck", false))
|
||||
{
|
||||
stricterChecks = !(movementInfo.HasMovementFlag(MOVEMENTFLAG_ASCENDING | MOVEMENTFLAG_DESCENDING) && !player->IsInWater());
|
||||
stricterChecks = !(movementInfo.HasMovementFlag(MOVEMENTFLAG_ASCENDING | MOVEMENTFLAG_DESCENDING) && !player->IsInWater() && !player->CanTeleport());
|
||||
}
|
||||
|
||||
if (!movementInfo.HasMovementFlag(MOVEMENTFLAG_CAN_FLY) && !movementInfo.HasMovementFlag(MOVEMENTFLAG_FLYING) && stricterChecks)
|
||||
|
||||
Reference in New Issue
Block a user