[DFT] Implement Unstoppable Plan

This commit is contained in:
theelk801 2025-01-28 18:05:28 -05:00
parent 50becf88d3
commit 8f18c74065
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,40 @@
package mage.cards.u;
import mage.abilities.effects.common.UntapAllEffect;
import mage.abilities.triggers.BeginningOfEndStepTriggeredAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.TargetController;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterNonlandPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class UnstoppablePlan extends CardImpl {
private static final FilterPermanent filter = new FilterNonlandPermanent("nonland permanents you control");
static {
filter.add(TargetController.YOU.getControllerPredicate());
}
public UnstoppablePlan(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}");
// At the beginning of your end step, untap all nonland permanents you control.
this.addAbility(new BeginningOfEndStepTriggeredAbility(new UntapAllEffect(filter)));
}
private UnstoppablePlan(final UnstoppablePlan card) {
super(card);
}
@Override
public UnstoppablePlan copy() {
return new UnstoppablePlan(this);
}
}

View file

@ -128,6 +128,7 @@ public final class Aetherdrift extends ExpansionSet {
cards.add(new SetCardInfo("Tranquil Cove", 267, Rarity.COMMON, mage.cards.t.TranquilCove.class));
cards.add(new SetCardInfo("Transit Mage", 70, Rarity.UNCOMMON, mage.cards.t.TransitMage.class));
cards.add(new SetCardInfo("Tyrox, Saurid Tyrant", 149, Rarity.UNCOMMON, mage.cards.t.TyroxSauridTyrant.class));
cards.add(new SetCardInfo("Unstoppable Plan", 72, Rarity.RARE, mage.cards.u.UnstoppablePlan.class));
cards.add(new SetCardInfo("Unswerving Sloth", 34, Rarity.UNCOMMON, mage.cards.u.UnswervingSloth.class));
cards.add(new SetCardInfo("Valor's Flagship", 35, Rarity.MYTHIC, mage.cards.v.ValorsFlagship.class));
cards.add(new SetCardInfo("Veloheart Bike", 184, Rarity.COMMON, mage.cards.v.VeloheartBike.class));