forked from External/mage
rework RevealCardsFromLibraryUntilEffect to use PutCards
This commit is contained in:
parent
39d78aff2f
commit
a3c4dc2395
18 changed files with 122 additions and 159 deletions
|
|
@ -22,7 +22,8 @@ public enum PutCards {
|
|||
TOP_OR_BOTTOM(Outcome.Benefit, Zone.LIBRARY, "on the top or bottom of your library"),
|
||||
TOP_ANY(Outcome.Benefit, Zone.LIBRARY, "on top of your library", " in any order"),
|
||||
BOTTOM_ANY(Outcome.Benefit, Zone.LIBRARY, "on the bottom of your library", " in any order"),
|
||||
BOTTOM_RANDOM(Outcome.Benefit, Zone.LIBRARY, "on the bottom of your library", " in a random order");
|
||||
BOTTOM_RANDOM(Outcome.Benefit, Zone.LIBRARY, "on the bottom of your library", " in a random order"),
|
||||
SHUFFLE(Outcome.Benefit, Zone.LIBRARY, "shuffled into your library"); // may need special case code to generate correct text
|
||||
|
||||
private final Outcome outcome;
|
||||
private final Zone zone;
|
||||
|
|
@ -74,6 +75,8 @@ public enum PutCards {
|
|||
return player.putCardsOnBottomOfLibrary(new CardsImpl(card), game, source, false);
|
||||
case BATTLEFIELD_TAPPED:
|
||||
return player.moveCards(card, Zone.BATTLEFIELD, source, game, true, false, false, null);
|
||||
case SHUFFLE:
|
||||
return player.shuffleCardsToLibrary(card, game, source);
|
||||
case BATTLEFIELD_TRANSFORMED:
|
||||
game.getState().setValue(TransformAbility.VALUE_KEY_ENTER_TRANSFORMED + card.getId(), Boolean.TRUE);
|
||||
case BATTLEFIELD:
|
||||
|
|
@ -98,6 +101,8 @@ public enum PutCards {
|
|||
return player.putCardsOnBottomOfLibrary(cards, game, source, false);
|
||||
case BATTLEFIELD_TAPPED:
|
||||
return player.moveCards(cards.getCards(game), Zone.BATTLEFIELD, source, game, true, false, false, null);
|
||||
case SHUFFLE:
|
||||
return player.shuffleCardsToLibrary(cards, game, source);
|
||||
case BATTLEFIELD_TRANSFORMED:
|
||||
cards.stream().forEach(uuid -> game.getState().setValue(TransformAbility.VALUE_KEY_ENTER_TRANSFORMED + uuid, Boolean.TRUE));
|
||||
case BATTLEFIELD:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue