Ejemplo n.º 1
0
 internal bool DropCard(CardBase dropCard)
 {
     if (Cards.Contains(dropCard))
     {
         DropCardRequest request = new DropCardRequest(BattlePlayer.ClientId, dropCard.M_CardInstanceId);
         BattlePlayer.MyClientProxy.BattleGameManager.Broadcast_AddRequestToOperationResponse(request);
         Cards.Remove(dropCard);
         UsableCards.Remove(dropCard.M_CardInstanceId);
         if (!dropCard.CardInfo.BaseInfo.IsTemp)
         {
             BattlePlayer.CardDeckManager.CardDeck.RecycleCardInstanceID(dropCard.M_CardInstanceId);
         }
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
    private void OnPlayerDropCard(DropCardRequest r)
    {
        ClientPlayer cp = GetPlayerByClientId(r.clientId);

        cp.BattlePlayer.HandManager.DropCard(r.handCardInstanceId);
    }