mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
- Fixed #9976
This commit is contained in:
parent
bf1dced876
commit
a8f43f50ed
1 changed files with 3 additions and 4 deletions
|
@ -55,8 +55,8 @@ class InverterOfTruthEffect extends OneShotEffect {
|
|||
|
||||
InverterOfTruthEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "exile all cards from your library face down, " +
|
||||
"then shuffle all cards from your graveyard into your library";
|
||||
staticText = "exile all cards from your library face down, "
|
||||
+ "then shuffle all cards from your graveyard into your library";
|
||||
}
|
||||
|
||||
private InverterOfTruthEffect(final InverterOfTruthEffect effect) {
|
||||
|
@ -75,12 +75,11 @@ class InverterOfTruthEffect extends OneShotEffect {
|
|||
return false;
|
||||
}
|
||||
Cards cards = new CardsImpl(player.getLibrary().getCards(game));
|
||||
player.moveCards(cards, Zone.EXILED, source, game);
|
||||
cards.removeIf(uuid -> game.getState().getZone(uuid) != Zone.EXILED);
|
||||
cards.getCards(game)
|
||||
.stream()
|
||||
.filter(Objects::nonNull)
|
||||
.forEach(card -> card.setFaceDown(true, game));
|
||||
player.moveCards(cards, Zone.EXILED, source, game);
|
||||
player.shuffleCardsToLibrary(player.getGraveyard(), game, source);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue