@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); } }
@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); }