case LIBRARY: if (command.getValue().equals("clear")) { player.getLibrary().clear();
@Override public void leave() { this.passed = true; this.loses = true; this.left = true; this.abort(); //20100423 - 800.4a this.hand.clear(); this.graveyard.clear(); this.library.clear(); }
@Override public void useDeck(Deck deck, Game game) { library.clear(); library.addAll(deck.getCards(), game); sideboard.clear(); for (Card card : deck.getSideboard()) { sideboard.add(card); } }
@Override public boolean apply(Game game, Ability source) { Player controller = game.getPlayer(source.getControllerId()); if (controller != null) { Set<Card> copyLibrary = new HashSet<>(); List<Card> listCopyLibrary = controller.getLibrary().getCards(game); listCopyLibrary.forEach((card) -> { copyLibrary.add(card); }); Set<Card> copyGraveyard = controller.getGraveyard().getCards(game); controller.getLibrary().clear(); controller.getGraveyard().clear(); controller.moveCards(copyLibrary, Zone.GRAVEYARD, source, game); controller.moveCards(copyGraveyard, Zone.LIBRARY, source, game); controller.shuffleLibrary(source, game); return true; } return false; } }
player.getGraveyard().clear(); player.getHand().clear(); player.getLibrary().clear(); for (Card card : game.getCards()) { if (card.isOwnedBy(player.getId()) && !card.isCopy() // no copies