From e5bf5a8591bedd401302e30069f43ccae254268b Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 16 Apr 2022 09:15:33 -0400 Subject: [PATCH] [SNC] Implemented Prize Fight --- Mage.Sets/src/mage/cards/p/Prizefight.java | 40 +++++++++++++++++++ .../src/mage/sets/StreetsOfNewCapenna.java | 1 + 2 files changed, 41 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/Prizefight.java diff --git a/Mage.Sets/src/mage/cards/p/Prizefight.java b/Mage.Sets/src/mage/cards/p/Prizefight.java new file mode 100644 index 0000000000..381f2dea9d --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/Prizefight.java @@ -0,0 +1,40 @@ +package mage.cards.p; + +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.FightTargetsEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.game.permanent.token.TreasureToken; +import mage.target.TargetPermanent; +import mage.target.common.TargetControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Prizefight extends CardImpl { + + public Prizefight(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}"); + + // Target creature you control fights target creature you don't control. + this.getSpellAbility().addEffect(new FightTargetsEffect()); + this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); + this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL)); + + // Create a Treasure token. + this.getSpellAbility().addEffect(new CreateTokenEffect(new TreasureToken()).concatBy("
")); + } + + private Prizefight(final Prizefight card) { + super(card); + } + + @Override + public Prizefight copy() { + return new Prizefight(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java b/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java index 7eb4664b4e..e3b73cda41 100644 --- a/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java +++ b/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java @@ -163,6 +163,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet { cards.add(new SetCardInfo("Patch Up", 23, Rarity.UNCOMMON, mage.cards.p.PatchUp.class)); cards.add(new SetCardInfo("Plains", 262, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Plasma Jockey", 115, Rarity.COMMON, mage.cards.p.PlasmaJockey.class)); + cards.add(new SetCardInfo("Prizefight", 154, Rarity.COMMON, mage.cards.p.Prizefight.class)); cards.add(new SetCardInfo("Professional Face-Breaker", 116, Rarity.RARE, mage.cards.p.ProfessionalFaceBreaker.class)); cards.add(new SetCardInfo("Psionic Snoop", 53, Rarity.COMMON, mage.cards.p.PsionicSnoop.class)); cards.add(new SetCardInfo("Psychic Pickpocket", 54, Rarity.UNCOMMON, mage.cards.p.PsychicPickpocket.class));