mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Fixed cards to put onto the battlefield to one call
Fixed cards to put into exile to one call
This commit is contained in:
parent
1dc421a545
commit
c37832944e
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue