Esempio n. 1
0
 @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);
   }
 }
Esempio n. 2
0
 @Override
 public boolean execute(Player activePlayer, Turn currentTurn, Supply supply) {
   if (activePlayer.getHand().countCardsOfType(Type.ACTION) == 0) {
     return false;
   }
   return super.execute(activePlayer, currentTurn, supply);
 }