From 6e957aeea7829364ba4850e19eaa4e33d9a2b56d Mon Sep 17 00:00:00 2001 From: theelk801 Date: Sun, 26 Jan 2025 20:20:43 -0500 Subject: [PATCH] [DFT] Implement Pedal to the Metal --- .../src/mage/cards/p/PedalToTheMetal.java | 39 +++++++++++++++++++ Mage.Sets/src/mage/sets/Aetherdrift.java | 1 + 2 files changed, 40 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/PedalToTheMetal.java diff --git a/Mage.Sets/src/mage/cards/p/PedalToTheMetal.java b/Mage.Sets/src/mage/cards/p/PedalToTheMetal.java new file mode 100644 index 00000000000..9fafa96ee0d --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PedalToTheMetal.java @@ -0,0 +1,39 @@ +package mage.cards.p; + +import mage.abilities.dynamicvalue.common.GetXValue; +import mage.abilities.dynamicvalue.common.StaticValue; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.keyword.FirstStrikeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class PedalToTheMetal extends CardImpl { + + public PedalToTheMetal(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{X}{R}"); + + // Target creature gets +X/+0 and gains first strike until end of turn. + this.getSpellAbility().addEffect(new BoostTargetEffect(GetXValue.instance, StaticValue.get(0)) + .setText("target creature gets +X/+0")); + this.getSpellAbility().addEffect(new GainAbilityTargetEffect(FirstStrikeAbility.getInstance()) + .setText("and gains first strike until end of turn")); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + } + + private PedalToTheMetal(final PedalToTheMetal card) { + super(card); + } + + @Override + public PedalToTheMetal copy() { + return new PedalToTheMetal(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Aetherdrift.java b/Mage.Sets/src/mage/sets/Aetherdrift.java index cc0beee6752..0c9ca906122 100644 --- a/Mage.Sets/src/mage/sets/Aetherdrift.java +++ b/Mage.Sets/src/mage/sets/Aetherdrift.java @@ -79,6 +79,7 @@ public final class Aetherdrift extends ExpansionSet { cards.add(new SetCardInfo("Nesting Bot", 22, Rarity.UNCOMMON, mage.cards.n.NestingBot.class)); cards.add(new SetCardInfo("Night Market", 258, Rarity.COMMON, mage.cards.n.NightMarket.class)); cards.add(new SetCardInfo("Pacesetter Paragon", 140, Rarity.UNCOMMON, mage.cards.p.PacesetterParagon.class)); + cards.add(new SetCardInfo("Pedal to the Metal", 141, Rarity.COMMON, mage.cards.p.PedalToTheMetal.class)); cards.add(new SetCardInfo("Plains", 272, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Possession Engine", 54, Rarity.RARE, mage.cards.p.PossessionEngine.class)); cards.add(new SetCardInfo("Prowcatcher Specialist", 142, Rarity.COMMON, mage.cards.p.ProwcatcherSpecialist.class));