Cards hand = player.getHand(); while (!hand.isEmpty()) { Card card = hand.get(hand.iterator().next(), game); if (card != null) { card.moveToExile(getId(), "Memory Jar", source.getSourceId(), game);
Cards hand = player.getHand(); while (!hand.isEmpty()) { Card card = hand.get(hand.iterator().next(), game); if (card != null) { card.moveToExile(getId(), "Magus of the Jar", source.getSourceId(), game);
Card commander = this.getCard(player.getSideboard().iterator().next()); if (commander != null) { player.addCommanderId(commander.getId());
moveObjectToLibrary(cards.iterator().next(), source == null ? null : source.getSourceId(), game, false, false);
discardedCards.addAll(this.getHand()); while (!this.getHand().isEmpty()) { discard(this.getHand().get(this.getHand().iterator().next(), game), source, game);
Card card = cards.get(cards.iterator().next(), game); card.moveToZone(Zone.LIBRARY, source.getSourceId(), game, true);
card = game.getCard(cards.iterator().next()); if (card != null) { controller.moveCards(card, Zone.HAND, source, game);
moveObjectToLibrary(cards.iterator().next(), sourceId, game, true, false);
Card card = revealed.get(revealed.iterator().next(), game); controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, true, false);
Card card = cards.get(cards.iterator().next(), game); controller.moveCards(card, Zone.GRAVEYARD, source, game); card.moveToZone(Zone.GRAVEYARD, source.getSourceId(), game, true);
Card card = chosen.get(chosen.iterator().next(), game); controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, true, false);
Card card = cards.get(cards.iterator().next(), game); if (card != null) { controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, false, false);