mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
[DMC] Implemented Iridian Maelstrom
This commit is contained in:
parent
a531908d40
commit
c5f17acd2d
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/i/IridianMaelstrom.java
Normal file
50
Mage.Sets/src/mage/cards/i/IridianMaelstrom.java
Normal file
|
@ -0,0 +1,50 @@
|
|||
package mage.cards.i;
|
||||
|
||||
import mage.abilities.effects.common.DestroyAllEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class IridianMaelstrom extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterCreaturePermanent();
|
||||
|
||||
static {
|
||||
filter.add(IridianMaelstromPredicate.instance);
|
||||
}
|
||||
|
||||
public IridianMaelstrom(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{W}{U}{B}{R}{G}");
|
||||
|
||||
// Destroy each creature that isn't all colors.
|
||||
this.getSpellAbility().addEffect(new DestroyAllEffect(filter).setText("destroy each creature that isn't all colors"));
|
||||
}
|
||||
|
||||
private IridianMaelstrom(final IridianMaelstrom card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IridianMaelstrom copy() {
|
||||
return new IridianMaelstrom(this);
|
||||
}
|
||||
}
|
||||
|
||||
enum IridianMaelstromPredicate implements Predicate<Permanent> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Permanent input, Game game) {
|
||||
return input.getColor(game).getColorCount() < 5;
|
||||
}
|
||||
}
|
|
@ -24,6 +24,7 @@ public final class DominariaUnitedCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Cascading Cataracts", 202, Rarity.RARE, mage.cards.c.CascadingCataracts.class));
|
||||
cards.add(new SetCardInfo("Crystal Quarry", 206, Rarity.RARE, mage.cards.c.CrystalQuarry.class));
|
||||
cards.add(new SetCardInfo("Faeburrow Elder", 149, Rarity.RARE, mage.cards.f.FaeburrowElder.class));
|
||||
cards.add(new SetCardInfo("Iridian Maelstrom", 12, Rarity.RARE, mage.cards.i.IridianMaelstrom.class));
|
||||
cards.add(new SetCardInfo("Maelstrom Nexus", 159, Rarity.MYTHIC, mage.cards.m.MaelstromNexus.class));
|
||||
cards.add(new SetCardInfo("Murmuring Bosk", 220, Rarity.RARE, mage.cards.m.MurmuringBosk.class));
|
||||
cards.add(new SetCardInfo("Nethroi, Apex of Death", 163, Rarity.MYTHIC, mage.cards.n.NethroiApexOfDeath.class));
|
||||
|
|
Loading…
Reference in a new issue