From a468bed46ef7de5d1cb228450cc988030047403c Mon Sep 17 00:00:00 2001 From: Muz Ali Date: Sun, 5 Jul 2026 21:59:45 -0500 Subject: [PATCH] [MSC] Implement Thing Swing --- Mage.Sets/src/mage/cards/t/ThingSwing.java | 52 +++++++++++++++++++ .../mage/sets/MarvelSuperHeroesCommander.java | 1 + 2 files changed, 53 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/ThingSwing.java diff --git a/Mage.Sets/src/mage/cards/t/ThingSwing.java b/Mage.Sets/src/mage/cards/t/ThingSwing.java new file mode 100644 index 000000000000..575768011bf5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/ThingSwing.java @@ -0,0 +1,52 @@ +package mage.cards.t; + +import java.util.UUID; + +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.Condition; +import mage.abilities.condition.common.SourceTargetsPermanentCondition; +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.SubType; +import mage.constants.Zone; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.target.common.TargetControlledCreaturePermanent; +import mage.target.common.TargetOpponentsCreaturePermanent; + +/** + * @author muz + */ +public final class ThingSwing extends CardImpl { + + private static final FilterPermanent filter + = new FilterControlledPermanent(SubType.HERO, "a Hero you control"); + + private static final Condition condition = new SourceTargetsPermanentCondition(filter); + + public ThingSwing(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{G}"); + + // This spell costs {2} less to cast if it targets a Hero you control. + this.addAbility(new SimpleStaticAbility( + Zone.ALL, new SpellCostReductionSourceEffect(2, condition).setCanWorksOnStackOnly(true) + ).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 TargetOpponentsCreaturePermanent()); + } + + private ThingSwing(final ThingSwing card) { + super(card); + } + + @Override + public ThingSwing copy() { + return new ThingSwing(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarvelSuperHeroesCommander.java b/Mage.Sets/src/mage/sets/MarvelSuperHeroesCommander.java index 6b576cc20e53..de1191f00c34 100644 --- a/Mage.Sets/src/mage/sets/MarvelSuperHeroesCommander.java +++ b/Mage.Sets/src/mage/sets/MarvelSuperHeroesCommander.java @@ -580,6 +580,7 @@ private MarvelSuperHeroesCommander() { cards.add(new SetCardInfo("The Wasp, Winsome Avenger", 343, Rarity.RARE, mage.cards.t.TheWaspWinsomeAvenger.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("The Wasp, Winsome Avenger", 39, Rarity.RARE, mage.cards.t.TheWaspWinsomeAvenger.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("The Whizzer, Classic Speedster", 710, Rarity.UNCOMMON, mage.cards.t.TheWhizzerClassicSpeedster.class)); + cards.add(new SetCardInfo("Thing Swing", 564, Rarity.COMMON, mage.cards.t.ThingSwing.class)); cards.add(new SetCardInfo("Think Twice", 787, Rarity.COMMON, mage.cards.t.ThinkTwice.class)); cards.add(new SetCardInfo("Thor, Guardian of Midgard", 503, Rarity.RARE, mage.cards.t.ThorGuardianOfMidgard.class)); cards.add(new SetCardInfo("Thought Vessel", 222, Rarity.UNCOMMON, mage.cards.t.ThoughtVessel.class));