mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Social: Implement FRIEND_STATUS_RAF (#19317)
This commit is contained in:
@@ -224,8 +224,13 @@ void SocialMgr::GetFriendInfo(Player* player, ObjectGuid const& friendGUID, Frie
|
||||
else if (target->isAFK())
|
||||
friendInfo.Status = FRIEND_STATUS_AFK;
|
||||
else
|
||||
{
|
||||
friendInfo.Status = FRIEND_STATUS_ONLINE;
|
||||
|
||||
if (target->GetSession()->GetRecruiterId() == player->GetSession()->GetAccountId() || target->GetSession()->GetAccountId() == player->GetSession()->GetRecruiterId())
|
||||
friendInfo.Status = FriendStatus(uint32(friendInfo.Status) | FRIEND_STATUS_RAF);
|
||||
}
|
||||
|
||||
friendInfo.Area = target->GetZoneId();
|
||||
friendInfo.Level = target->getLevel();
|
||||
friendInfo.Class = target->getClass();
|
||||
|
||||
Reference in New Issue
Block a user