From c6528c3a4d0c9971501c71a90e75fb691dd71709 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Tue, 6 Jan 2026 08:39:15 -0500 Subject: [PATCH] [ECL] Implement Explosive Prodigy --- .../src/mage/cards/e/ExplosiveProdigy.java | 48 +++++++++++++++++++ Mage.Sets/src/mage/sets/LorwynEclipsed.java | 1 + .../main/java/mage/constants/AbilityWord.java | 1 + 3 files changed, 50 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/ExplosiveProdigy.java diff --git a/Mage.Sets/src/mage/cards/e/ExplosiveProdigy.java b/Mage.Sets/src/mage/cards/e/ExplosiveProdigy.java new file mode 100644 index 00000000000..0a7c9fe9af0 --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/ExplosiveProdigy.java @@ -0,0 +1,48 @@ +package mage.cards.e; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.dynamicvalue.common.ColorsAmongControlledPermanentsCount; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AbilityWord; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.common.TargetOpponentsCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ExplosiveProdigy extends CardImpl { + + public ExplosiveProdigy(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}"); + + this.subtype.add(SubType.ELEMENTAL); + this.subtype.add(SubType.SORCERER); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // Vivid -- When this creature enters, it deals X damage to target creature an opponent controls, where X is the number of colors among permanents you control. + Ability ability = new EntersBattlefieldTriggeredAbility( + new DamageTargetEffect(ColorsAmongControlledPermanentsCount.ALL_PERMANENTS) + .setText("it deals X damage to target creature an opponent controls, " + + "where X is the number of colors among permanents you control") + ); + ability.addTarget(new TargetOpponentsCreaturePermanent()); + this.addAbility(ability.setAbilityWord(AbilityWord.VIVID).addHint(ColorsAmongControlledPermanentsCount.ALL_PERMANENTS.getHint())); + } + + private ExplosiveProdigy(final ExplosiveProdigy card) { + super(card); + } + + @Override + public ExplosiveProdigy copy() { + return new ExplosiveProdigy(this); + } +} diff --git a/Mage.Sets/src/mage/sets/LorwynEclipsed.java b/Mage.Sets/src/mage/sets/LorwynEclipsed.java index 4dbee500d77..a0543a8951d 100644 --- a/Mage.Sets/src/mage/sets/LorwynEclipsed.java +++ b/Mage.Sets/src/mage/sets/LorwynEclipsed.java @@ -48,6 +48,7 @@ public final class LorwynEclipsed extends ExpansionSet { cards.add(new SetCardInfo("Elder Auntie", 133, Rarity.COMMON, mage.cards.e.ElderAuntie.class)); cards.add(new SetCardInfo("Emptiness", 222, Rarity.MYTHIC, mage.cards.e.Emptiness.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Emptiness", 294, Rarity.MYTHIC, mage.cards.e.Emptiness.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Explosive Prodigy", 136, Rarity.UNCOMMON, mage.cards.e.ExplosiveProdigy.class)); cards.add(new SetCardInfo("Figure of Fable", 224, Rarity.RARE, mage.cards.f.FigureOfFable.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Figure of Fable", 372, Rarity.RARE, mage.cards.f.FigureOfFable.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Forest", 273, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS)); diff --git a/Mage/src/main/java/mage/constants/AbilityWord.java b/Mage/src/main/java/mage/constants/AbilityWord.java index c8044d3c38c..42d20c8def1 100644 --- a/Mage/src/main/java/mage/constants/AbilityWord.java +++ b/Mage/src/main/java/mage/constants/AbilityWord.java @@ -63,6 +63,7 @@ public enum AbilityWord { THRESHOLD("Threshold"), UNDERGROWTH("Undergrowth"), VALIANT("Valiant"), + VIVID("Vivid"), VOID("Void"), WILL_OF_THE_COUNCIL("Will of the council"), WILL_OF_THE_PLANESWALKERS("Will of the planeswalkers");