예제 #1
0
 private void OnPartyUpdate_JoinedParty(BnetEntityId partyId, BnetGameAccountId otherMemberId)
 {
     if (this.DidSendChallenge() && (this.m_challengee.GetHearthstoneGameAccount().GetId() == otherMemberId))
     {
         if (partyId != this.m_partyId)
         {
             this.m_challengeePartyId = partyId;
             if (this.m_partyId != null)
             {
                 this.ResolveChallengeConflict();
             }
         }
     }
     else if (!BnetUtils.CanReceiveChallengeFrom(otherMemberId))
     {
         Network.DeclineFriendChallenge(partyId);
     }
     else if (!this.AmIAvailable())
     {
         Network.DeclineFriendChallenge(partyId);
     }
     else
     {
         this.HandleJoinedParty(partyId, otherMemberId);
     }
 }