From 70868ad4ab4faff26bab507bb2f2fb5cf7fa48d8 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 3 Feb 2025 11:56:12 -0500 Subject: [PATCH] [DFT] Implement Trip Up --- Mage.Sets/src/mage/cards/t/TripUp.java | 37 ++++++++++++++++++++++++ Mage.Sets/src/mage/sets/Aetherdrift.java | 1 + 2 files changed, 38 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TripUp.java diff --git a/Mage.Sets/src/mage/cards/t/TripUp.java b/Mage.Sets/src/mage/cards/t/TripUp.java new file mode 100644 index 00000000000..93fb7247fa4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TripUp.java @@ -0,0 +1,37 @@ +package mage.cards.t; + +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.PutOnTopOrBottomLibraryTargetEffect; +import mage.abilities.keyword.CyclingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetNonlandPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TripUp extends CardImpl { + + public TripUp(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{U}"); + + // Target nonland permanent's owner puts it on their choice of the top or bottom of their library. + this.getSpellAbility().addEffect(new PutOnTopOrBottomLibraryTargetEffect(false)); + this.getSpellAbility().addTarget(new TargetNonlandPermanent()); + + // Cycling {2} + this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}"))); + } + + private TripUp(final TripUp card) { + super(card); + } + + @Override + public TripUp copy() { + return new TripUp(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Aetherdrift.java b/Mage.Sets/src/mage/sets/Aetherdrift.java index cb375f8f4fe..1f8f9fb0183 100644 --- a/Mage.Sets/src/mage/sets/Aetherdrift.java +++ b/Mage.Sets/src/mage/sets/Aetherdrift.java @@ -216,6 +216,7 @@ public final class Aetherdrift extends ExpansionSet { cards.add(new SetCardInfo("Trade the Helm", 69, Rarity.UNCOMMON, mage.cards.t.TradeTheHelm.class)); 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("Trip Up", 71, Rarity.COMMON, mage.cards.t.TripUp.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));