mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Added revealing cards in Quiet Speculation
This commit is contained in:
parent
a5d846f970
commit
1cd94a2020
1 changed files with 7 additions and 0 deletions
|
@ -35,6 +35,8 @@ import mage.abilities.effects.SearchEffect;
|
|||
import mage.abilities.keyword.FlashbackAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.Cards;
|
||||
import mage.cards.CardsImpl;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||
import mage.game.Game;
|
||||
|
@ -103,12 +105,17 @@ class SearchLibraryPutInGraveEffect extends SearchEffect<SearchLibraryPutInGrave
|
|||
}
|
||||
if (player.searchLibrary(target, game)) {
|
||||
if (target.getTargets().size() > 0) {
|
||||
Cards cards = new CardsImpl();
|
||||
for (UUID cardId: (List<UUID>)target.getTargets()) {
|
||||
Card card = player.getLibrary().remove(cardId, game);
|
||||
if (card != null){
|
||||
card.moveToZone(Constants.Zone.GRAVEYARD, source.getId(), game, false);
|
||||
cards.add(card);
|
||||
}
|
||||
}
|
||||
if (cards.size() > 0) {
|
||||
player.revealCards("Quiet Speculation", cards, game);
|
||||
}
|
||||
}
|
||||
player.shuffleLibrary(game);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue