mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fixed Genesis Wave so you can no longer put sorceries or instants onto the battlefield.
This commit is contained in:
parent
1cb8e695f7
commit
c67ec6b2c5
1 changed files with 8 additions and 0 deletions
|
@ -40,6 +40,8 @@ import mage.cards.Cards;
|
|||
import mage.cards.CardsImpl;
|
||||
import mage.filter.Filter.ComparisonType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||
import mage.filter.predicate.mageobject.ConvertedManaCostPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
@ -93,6 +95,12 @@ class GenesisWaveEffect extends OneShotEffect<GenesisWaveEffect> {
|
|||
}
|
||||
FilterCard filter = new FilterCard("card with converted mana cost " + count + " or less to put onto the battlefield");
|
||||
filter.add(new ConvertedManaCostPredicate(ComparisonType.LessThan, count + 1));
|
||||
filter.add(Predicates.or(new CardTypePredicate(CardType.ARTIFACT),
|
||||
new CardTypePredicate(CardType.CREATURE),
|
||||
new CardTypePredicate(CardType.ENCHANTMENT),
|
||||
new CardTypePredicate(CardType.LAND),
|
||||
new CardTypePredicate(CardType.PLANESWALKER)
|
||||
));
|
||||
TargetCard target1 = new TargetCard(Zone.PICK, filter);
|
||||
while (cards.size() > 0 && player.choose(Outcome.PutCardInPlay, cards, target1, game)) {
|
||||
Card card = cards.get(target1.getFirstTarget(), game);
|
||||
|
|
Loading…
Reference in a new issue