Fixed cards to put onto the battlefield to one call

Fixed cards to put into exile to one call
This commit is contained in:
davidmfritz 2018-11-01 11:51:36 +01:00
parent 1dc421a545
commit c37832944e

View file

@ -71,13 +71,17 @@ class ClearTheLandEffect extends OneShotEffect {
cardsToReveal.addAll(library.getTopCards(game, 5));
if (!cardsToReveal.isEmpty()) {
player.revealCards(source, "Revealed cards for " + player.getName(), cardsToReveal, game);
Cards cardsToPutOnBattlefield = new CardsImpl();
Cards cardsToExile = new CardsImpl();
for (Card card : cardsToReveal.getCards(game)) {
if (card.isLand()) {
player.moveCards(card, Zone.BATTLEFIELD, source, game, tapped, false, true, null);
cardsToPutOnBattlefield.add(card);
} else {
player.moveCards(card, Zone.EXILED, source, game);
cardsToExile.add(card);
}
}
player.moveCards(cardsToPutOnBattlefield.getCards(game), Zone.BATTLEFIELD, source, game, tapped, false, true, null);
player.moveCards(cardsToExile.getCards(game), Zone.EXILED, source, game);
}
}
}