mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
Using IsGMAccount instead of direct check
This commit is contained in:
@@ -83,7 +83,7 @@ public:
|
||||
return false;
|
||||
|
||||
Player* target = handler->getSelectedPlayer();
|
||||
if (!target || handler->GetSession()->GetSecurity() < SEC_GAMEMASTER)
|
||||
if (!target || AccountMgr::IsGMAccount(handler->GetSession()->GetSecurity()))
|
||||
target = handler->GetSession()->GetPlayer();
|
||||
|
||||
WorldPacket data(12);
|
||||
|
||||
Reference in New Issue
Block a user