chore(Core/Account): move AccountMgr::IsGMAccount() to class WorldSession (#17845)
This commit is contained in:
committed by
GitHub
parent
9da7657147
commit
4c94f62144
@@ -70,7 +70,7 @@ void WorldSession::HandleAddFriendOpcode(WorldPacket& recv_data)
|
||||
else
|
||||
{
|
||||
Player* pFriend = ObjectAccessor::FindConnectedPlayer(friendGuid);
|
||||
if (pFriend && pFriend->IsVisibleGloballyFor(GetPlayer()) && !AccountMgr::IsGMAccount(pFriend->GetSession()->GetSecurity()))
|
||||
if (pFriend && pFriend->IsVisibleGloballyFor(GetPlayer()) && !pFriend->GetSession()->IsGMAccount())
|
||||
friendResult = FRIEND_ADDED_ONLINE;
|
||||
else
|
||||
friendResult = FRIEND_ADDED_OFFLINE;
|
||||
|
||||
Reference in New Issue
Block a user