コード例 #1
0
ファイル: DiscardCopper.java プロジェクト: ivadla/jdominion
 @Override
 protected void attackPlayer(Player playerToAttack, Turn currentTurn, Supply supply) {
   if (playerToAttack.getHand().contains(Copper.class)) {
     CardList cardsToDiscard = new CardList();
     cardsToDiscard.add(playerToAttack.getHand().getCardByClass(Copper.class));
     playerToAttack.discardCardsFromHand(cardsToDiscard, currentTurn, supply);
   }
 }