From f5b19b7e714c1104375cb44d1fb6e741ae7307d6 Mon Sep 17 00:00:00 2001 From: Tristan 'Natrist' Cormier Date: Mon, 27 Nov 2023 20:01:00 -0500 Subject: [PATCH] chore(Core): move AccountMgr::IsGMAccount() to class WorldSession (#128) --- src/AnticheatScripts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnticheatScripts.cpp b/src/AnticheatScripts.cpp index 8096e61..6b21086 100644 --- a/src/AnticheatScripts.cpp +++ b/src/AnticheatScripts.cpp @@ -104,7 +104,7 @@ public: void OnPlayerMove(Player* player, MovementInfo mi, uint32 opcode) override { - if (!AccountMgr::IsGMAccount(player->GetSession()->GetSecurity()) || sConfigMgr->GetOption("Anticheat.EnabledOnGmAccounts", false)) + if (!player->GetSession()->IsGMAccount() || sConfigMgr->GetOption("Anticheat.EnabledOnGmAccounts", false)) sAnticheatMgr->StartHackDetection(player, mi, opcode); } };