From 2a186b0055a833511308797300600df39dbaeda1 Mon Sep 17 00:00:00 2001 From: Muz Ali Date: Wed, 1 Jul 2026 14:50:04 -0500 Subject: [PATCH] [MSH] Implement Punishing Punch --- .../src/mage/cards/p/PunishingPunch.java | 58 +++++++++++++++++++ .../src/mage/sets/MarvelSuperHeroes.java | 1 + 2 files changed, 59 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/PunishingPunch.java diff --git a/Mage.Sets/src/mage/cards/p/PunishingPunch.java b/Mage.Sets/src/mage/cards/p/PunishingPunch.java new file mode 100644 index 000000000000..65991c4cef11 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PunishingPunch.java @@ -0,0 +1,58 @@ +package mage.cards.p; + +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.Condition; +import mage.abilities.condition.common.CardsInControllerGraveyardCondition; +import mage.abilities.effects.common.DamageWithPowerFromOneToAnotherTargetEffect; +import mage.abilities.effects.common.cost.SpellCostReductionSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.TargetController; +import mage.constants.Zone; +import mage.filter.FilterPermanent; +import mage.filter.StaticFilters; +import mage.filter.common.FilterCreaturePermanent; +import mage.target.TargetPermanent; +import mage.target.common.TargetControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author muz + */ +public final class PunishingPunch extends CardImpl { + + private static final FilterPermanent filter = new FilterCreaturePermanent("creature an opponent controls"); + + private static final Condition condition = new CardsInControllerGraveyardCondition( + 2, StaticFilters.FILTER_CARD_CREATURES + ); + + static { + filter.add(TargetController.OPPONENT.getControllerPredicate()); + } + + public PunishingPunch(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}"); + + // This spell costs {2} less to cast if there are two or more creature cards in your graveyard. + this.addAbility(new SimpleStaticAbility( + Zone.ALL, new SpellCostReductionSourceEffect(2, condition) + ).setRuleAtTheTop(true)); + + // Target creature you control deals damage equal to twice its power to target creature an opponent controls. + this.getSpellAbility().addEffect(new DamageWithPowerFromOneToAnotherTargetEffect("", 2)); + this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); + this.getSpellAbility().addTarget(new TargetPermanent(filter)); + } + + private PunishingPunch(final PunishingPunch card) { + super(card); + } + + @Override + public PunishingPunch copy() { + return new PunishingPunch(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarvelSuperHeroes.java b/Mage.Sets/src/mage/sets/MarvelSuperHeroes.java index 0c78fb74a146..1455f0ba70ae 100644 --- a/Mage.Sets/src/mage/sets/MarvelSuperHeroes.java +++ b/Mage.Sets/src/mage/sets/MarvelSuperHeroes.java @@ -243,6 +243,7 @@ private MarvelSuperHeroes() { cards.add(new SetCardInfo("Plains", 288, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Plains", 287, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Project Deathlok Soldier", 109, Rarity.COMMON, mage.cards.p.ProjectDeathlokSoldier.class)); + cards.add(new SetCardInfo("Punishing Punch", 180, Rarity.UNCOMMON, mage.cards.p.PunishingPunch.class)); cards.add(new SetCardInfo("Pym Particles", 70, Rarity.UNCOMMON, mage.cards.p.PymParticles.class)); cards.add(new SetCardInfo("Pym Technologies", 271, Rarity.COMMON, mage.cards.p.PymTechnologies.class)); cards.add(new SetCardInfo("Quake, Agent of S.H.I.E.L.D.", 32, Rarity.UNCOMMON, mage.cards.q.QuakeAgentOfSHIELD.class));