From cac320c27dacba3d369e63107fb76ad1723674be Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 24 Jan 2025 11:21:15 -0500 Subject: [PATCH] [DFT] Implement Apocalypse Runner --- .../src/mage/cards/a/ApocalypseRunner.java | 59 +++++++++++++++++++ Mage.Sets/src/mage/sets/Aetherdrift.java | 1 + 2 files changed, 60 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/ApocalypseRunner.java diff --git a/Mage.Sets/src/mage/cards/a/ApocalypseRunner.java b/Mage.Sets/src/mage/cards/a/ApocalypseRunner.java new file mode 100644 index 00000000000..9ec34a70431 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/ApocalypseRunner.java @@ -0,0 +1,59 @@ +package mage.cards.a; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.effects.common.combat.CantBeBlockedTargetEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.keyword.CrewAbility; +import mage.abilities.keyword.LifelinkAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledCreaturePermanent; +import mage.filter.predicate.mageobject.PowerPredicate; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ApocalypseRunner extends CardImpl { + + private static final FilterPermanent filter = new FilterControlledCreaturePermanent("creature you control with power 2 or less"); + + static { + filter.add(new PowerPredicate(ComparisonType.FEWER_THAN, 3)); + } + + public ApocalypseRunner(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}{B}{R}"); + + this.subtype.add(SubType.VEHICLE); + this.power = new MageInt(6); + this.toughness = new MageInt(5); + + // {T}: Target creature you control with power 2 or less gains lifelink until end of turn and can't be blocked this turn. + Ability ability = new SimpleActivatedAbility(new GainAbilityTargetEffect(LifelinkAbility.getInstance()), new TapSourceCost()); + ability.addEffect(new CantBeBlockedTargetEffect().setText("and can't be blocked this turn")); + ability.addTarget(new TargetPermanent(filter)); + this.addAbility(ability); + + // Crew 3 + this.addAbility(new CrewAbility(3)); + } + + private ApocalypseRunner(final ApocalypseRunner card) { + super(card); + } + + @Override + public ApocalypseRunner copy() { + return new ApocalypseRunner(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Aetherdrift.java b/Mage.Sets/src/mage/sets/Aetherdrift.java index d37514e6709..4ccfeea199c 100644 --- a/Mage.Sets/src/mage/sets/Aetherdrift.java +++ b/Mage.Sets/src/mage/sets/Aetherdrift.java @@ -28,6 +28,7 @@ public final class Aetherdrift extends ExpansionSet { cards.add(new SetCardInfo("Aether Syphon", 38, Rarity.UNCOMMON, mage.cards.a.AetherSyphon.class)); cards.add(new SetCardInfo("Air Response Unit", 1, Rarity.UNCOMMON, mage.cards.a.AirResponseUnit.class)); cards.add(new SetCardInfo("Amonkhet Raceway", 248, Rarity.UNCOMMON, mage.cards.a.AmonkhetRaceway.class)); + cards.add(new SetCardInfo("Apocalypse Runner", 188, Rarity.UNCOMMON, mage.cards.a.ApocalypseRunner.class)); cards.add(new SetCardInfo("Bleachbone Verge", 250, Rarity.RARE, mage.cards.b.BleachboneVerge.class)); cards.add(new SetCardInfo("Bloodfell Caves", 251, Rarity.COMMON, mage.cards.b.BloodfellCaves.class)); cards.add(new SetCardInfo("Bloodghast", 77, Rarity.RARE, mage.cards.b.Bloodghast.class));