[DMC] Implemented Iridian Maelstrom

This commit is contained in:
Evan Kranzler 2022-08-20 10:28:52 -04:00
parent a531908d40
commit c5f17acd2d
2 changed files with 51 additions and 0 deletions

View 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;
}
}

View file

@ -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));