From 8c1a15ca7e855291acf2fabad2d7ec7cf595c012 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 24 Jan 2025 12:44:25 -0500 Subject: [PATCH] [DFT] Implement Wild Roads --- Mage.Sets/src/mage/cards/w/WildRoads.java | 67 +++++++++++++++++++++++ Mage.Sets/src/mage/sets/Aetherdrift.java | 1 + 2 files changed, 68 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/w/WildRoads.java diff --git a/Mage.Sets/src/mage/cards/w/WildRoads.java b/Mage.Sets/src/mage/cards/w/WildRoads.java new file mode 100644 index 00000000000..2ba73b50595 --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WildRoads.java @@ -0,0 +1,67 @@ +package mage.cards.w; + +import mage.abilities.Ability; +import mage.abilities.common.ActivateAsSorceryActivatedAbility; +import mage.abilities.common.EntersBattlefieldTappedUnlessAbility; +import mage.abilities.condition.Condition; +import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.mana.GreenManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.filter.predicate.Predicates; +import mage.game.permanent.token.PilotSaddleCrewToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class WildRoads extends CardImpl { + + private static final FilterPermanent filter = new FilterControlledPermanent("you control a Mount or Vehicle"); + + static { + filter.add(Predicates.or( + SubType.MOUNT.getPredicate(), + SubType.VEHICLE.getPredicate() + )); + } + + private static final Condition condition = new PermanentsOnTheBattlefieldCondition(filter); + + public WildRoads(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + + // This land enters tapped unless you control a Mount or Vehicle. + this.addAbility(new EntersBattlefieldTappedUnlessAbility(condition)); + + // {T}: Add {G}. + this.addAbility(new GreenManaAbility()); + + // {1}{G}, {T}, Sacrifice this land: Create a 1/1 colorless Pilot creature token with "This token saddles Mounts and crews Vehicles as though its power were 2 greater." Activate only as a sorcery. + Ability ability = new ActivateAsSorceryActivatedAbility( + new CreateTokenEffect(new PilotSaddleCrewToken()), new ManaCostsImpl<>("{1}{G}") + ); + ability.addCost(new TapSourceCost()); + ability.addCost(new SacrificeSourceCost()); + this.addAbility(ability); + } + + private WildRoads(final WildRoads card) { + super(card); + } + + @Override + public WildRoads copy() { + return new WildRoads(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Aetherdrift.java b/Mage.Sets/src/mage/sets/Aetherdrift.java index 2ad5a352d29..3cdc9f34893 100644 --- a/Mage.Sets/src/mage/sets/Aetherdrift.java +++ b/Mage.Sets/src/mage/sets/Aetherdrift.java @@ -86,6 +86,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("Venomsac Lagac", 185, Rarity.COMMON, mage.cards.v.VenomsacLagac.class)); cards.add(new SetCardInfo("Wastewood Verge", 268, Rarity.RARE, mage.cards.w.WastewoodVerge.class)); + cards.add(new SetCardInfo("Wild Roads", 269, Rarity.UNCOMMON, mage.cards.w.WildRoads.class)); cards.add(new SetCardInfo("Willowrush Verge", 270, Rarity.RARE, mage.cards.w.WillowrushVerge.class)); cards.add(new SetCardInfo("Wind-Scarred Crag", 271, Rarity.COMMON, mage.cards.w.WindScarredCrag.class));