Core/Social: Implement FRIEND_STATUS_RAF
Port From (https://github.com/TrinityCore/TrinityCore/commit/8874a3ac5d30ed5087cea66f7361c3de3c6deeb1)
This commit is contained in:
@@ -69,7 +69,11 @@ namespace Game.Entities
|
|||||||
else if (target.IsAFK())
|
else if (target.IsAFK())
|
||||||
friendInfo.Status = FriendStatus.AFK;
|
friendInfo.Status = FriendStatus.AFK;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
friendInfo.Status = FriendStatus.Online;
|
friendInfo.Status = FriendStatus.Online;
|
||||||
|
if (target.GetSession().GetRecruiterId() == player.GetSession().GetAccountId() || target.GetSession().GetAccountId() == player.GetSession().GetRecruiterId())
|
||||||
|
friendInfo.Status |= FriendStatus.RAF;
|
||||||
|
}
|
||||||
|
|
||||||
friendInfo.Area = target.GetZoneId();
|
friendInfo.Area = target.GetZoneId();
|
||||||
friendInfo.Level = target.GetLevel();
|
friendInfo.Level = target.GetLevel();
|
||||||
|
|||||||
Reference in New Issue
Block a user