From b6cc4fd5a529f803668eaafda3e1a3baf50a5a97 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 24 Mar 2025 10:38:50 -0400 Subject: [PATCH] [TDM] Implement Coordinated Maneuver --- .../src/mage/cards/c/CoordinatedManeuver.java | 43 +++++++++++++++++++ .../src/mage/sets/TarkirDragonstorm.java | 1 + 2 files changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/CoordinatedManeuver.java diff --git a/Mage.Sets/src/mage/cards/c/CoordinatedManeuver.java b/Mage.Sets/src/mage/cards/c/CoordinatedManeuver.java new file mode 100644 index 00000000000..afd5cb71f31 --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/CoordinatedManeuver.java @@ -0,0 +1,43 @@ +package mage.cards.c; + +import mage.abilities.Mode; +import mage.abilities.dynamicvalue.common.CreaturesYouControlCount; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.abilities.hint.common.CreaturesYouControlHint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetCreatureOrPlaneswalker; +import mage.target.common.TargetEnchantmentPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class CoordinatedManeuver extends CardImpl { + + public CoordinatedManeuver(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}"); + + // Choose one -- + // * Coordinated Maneuver deals damage equal to the number of creatures you control to target creature or planeswalker. + this.getSpellAbility().addEffect(new DamageTargetEffect(CreaturesYouControlCount.instance) + .setText("{this} deals damage equal to the number of creatures you control to target creature or planeswalker")); + this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker()); + this.getSpellAbility().addHint(CreaturesYouControlHint.instance); + + // * Destroy target enchantment. + this.getSpellAbility().addMode(new Mode(new DestroyTargetEffect()).addTarget(new TargetEnchantmentPermanent())); + } + + private CoordinatedManeuver(final CoordinatedManeuver card) { + super(card); + } + + @Override + public CoordinatedManeuver copy() { + return new CoordinatedManeuver(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TarkirDragonstorm.java b/Mage.Sets/src/mage/sets/TarkirDragonstorm.java index cabd3e3c338..cf11cba1032 100644 --- a/Mage.Sets/src/mage/sets/TarkirDragonstorm.java +++ b/Mage.Sets/src/mage/sets/TarkirDragonstorm.java @@ -36,6 +36,7 @@ public final class TarkirDragonstorm extends ExpansionSet { cards.add(new SetCardInfo("Bone-Cairn Butcher", 173, Rarity.UNCOMMON, mage.cards.b.BoneCairnButcher.class)); cards.add(new SetCardInfo("Boulderborn Dragon", 239, Rarity.COMMON, mage.cards.b.BoulderbornDragon.class)); cards.add(new SetCardInfo("Caustic Exhale", 74, Rarity.COMMON, mage.cards.c.CausticExhale.class)); + cards.add(new SetCardInfo("Coordinated Maneuver", 6, Rarity.COMMON, mage.cards.c.CoordinatedManeuver.class)); cards.add(new SetCardInfo("Cori Mountain Stalwart", 175, Rarity.UNCOMMON, mage.cards.c.CoriMountainStalwart.class)); cards.add(new SetCardInfo("Cori-Steel Cutter", 103, Rarity.RARE, mage.cards.c.CoriSteelCutter.class)); cards.add(new SetCardInfo("Craterhoof Behemoth", 138, Rarity.MYTHIC, mage.cards.c.CraterhoofBehemoth.class));