TrashCardFromHandOfType() private method

private TrashCardFromHandOfType ( Dominion.Card card, GameState gameState, bool guaranteeInHand ) : Dominion.Card
card Dominion.Card
gameState GameState
guaranteeInHand bool
return Dominion.Card
Beispiel #1
0
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     Card card = currentPlayer.TrashCardFromHandOfType(Copper.card, gameState, guaranteeInHand: false);
     if (card != null)
     {
         currentPlayer.AddCoins(3);
     }
 }
Beispiel #2
0
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     if (currentPlayer.MoveCardFromPlayToTrash(gameState))
     {
         if (currentPlayer.TrashCardFromHandOfType(TreasureMap.card, gameState, guaranteeInHand: false) != null)
         {
             currentPlayer.GainCardsFromSupply(gameState, Gold.card, 4, DeckPlacement.TopOfDeck);
         }
     }
 }