chore(Core): move AccountMgr::IsGMAccount() to class WorldSession (#128)

This commit is contained in:
Tristan 'Natrist' Cormier
2023-11-27 20:01:00 -05:00
committed by GitHub
parent f734e763c2
commit f5b19b7e71

View File

@@ -104,7 +104,7 @@ public:
void OnPlayerMove(Player* player, MovementInfo mi, uint32 opcode) override
{
if (!AccountMgr::IsGMAccount(player->GetSession()->GetSecurity()) || sConfigMgr->GetOption<bool>("Anticheat.EnabledOnGmAccounts", false))
if (!player->GetSession()->IsGMAccount() || sConfigMgr->GetOption<bool>("Anticheat.EnabledOnGmAccounts", false))
sAnticheatMgr->StartHackDetection(player, mi, opcode);
}
};