From 29f9d48989b50edbb2d4d4435867cd9945b25845 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Sat, 30 Mar 2024 21:44:00 -0400 Subject: [PATCH] [OTJ] Implement Outlaws' Fury --- Mage.Sets/src/mage/cards/o/OutlawsFury.java | 55 +++++++++++++++++++ .../mage/sets/OutlawsOfThunderJunction.java | 1 + 2 files changed, 56 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/o/OutlawsFury.java diff --git a/Mage.Sets/src/mage/cards/o/OutlawsFury.java b/Mage.Sets/src/mage/cards/o/OutlawsFury.java new file mode 100644 index 00000000000..e6555752a0e --- /dev/null +++ b/Mage.Sets/src/mage/cards/o/OutlawsFury.java @@ -0,0 +1,55 @@ +package mage.cards.o; + +import mage.abilities.condition.Condition; +import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.ExileTopXMayPlayUntilEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.hint.ConditionHint; +import mage.abilities.hint.Hint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.filter.predicate.mageobject.OutlawPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class OutlawsFury extends CardImpl { + + private static final FilterPermanent filter = new FilterControlledPermanent(); + + static { + filter.add(OutlawPredicate.instance); + } + + private static final Condition condition = new PermanentsOnTheBattlefieldCondition(filter); + private static final Hint hint = new ConditionHint(condition, "You control an outlaw"); + + public OutlawsFury(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}"); + + // Creatures you control get +2/+0 until end of turn. If you control an outlaw, exile the top card of your library. Until the end of your next turn, you may play that card. + this.getSpellAbility().addEffect(new BoostControlledEffect(2, 0, Duration.EndOfTurn)); + this.getSpellAbility().addEffect(new ConditionalOneShotEffect( + new ExileTopXMayPlayUntilEffect(1, Duration.UntilEndOfYourNextTurn), + condition, "if you control an outlaw, exile the top card of your library. " + + "Until the end of your next turn, you may play that card" + )); + this.getSpellAbility().addHint(hint); + } + + private OutlawsFury(final OutlawsFury card) { + super(card); + } + + @Override + public OutlawsFury copy() { + return new OutlawsFury(this); + } +} diff --git a/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java b/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java index 74655ff7156..168210f917a 100644 --- a/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java +++ b/Mage.Sets/src/mage/sets/OutlawsOfThunderJunction.java @@ -131,6 +131,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet { cards.add(new SetCardInfo("Outcaster Greenblade", 172, Rarity.UNCOMMON, mage.cards.o.OutcasterGreenblade.class)); cards.add(new SetCardInfo("Outcaster Trailblazer", 173, Rarity.RARE, mage.cards.o.OutcasterTrailblazer.class)); cards.add(new SetCardInfo("Outlaw Stitcher", 59, Rarity.UNCOMMON, mage.cards.o.OutlawStitcher.class)); + cards.add(new SetCardInfo("Outlaws' Fury", 136, Rarity.COMMON, mage.cards.o.OutlawsFury.class)); cards.add(new SetCardInfo("Peerless Ropemaster", 60, Rarity.COMMON, mage.cards.p.PeerlessRopemaster.class)); cards.add(new SetCardInfo("Pillage the Bog", 224, Rarity.RARE, mage.cards.p.PillageTheBog.class)); cards.add(new SetCardInfo("Plains", 272, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));