mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
chore(Core): move AccountMgr::IsGMAccount() to class WorldSession (#128)
This commit is contained in:
committed by
GitHub
parent
f734e763c2
commit
f5b19b7e71
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user