From e729ae20903e5c9f65fbc3be2cd678ff336a8c2d Mon Sep 17 00:00:00 2001 From: Muz Date: Sat, 10 Jan 2026 12:57:47 -0600 Subject: [PATCH] [ECL] Implement Prismabasher (#14230) * Reference Elemental Spectacle and remove unused import * [ECL] Implement Prismabasher --- .../src/mage/cards/e/ElementalSpectacle.java | 1 - Mage.Sets/src/mage/cards/p/Prismabasher.java | 55 +++++++++++++++++++ Mage.Sets/src/mage/sets/LorwynEclipsed.java | 1 + 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/cards/p/Prismabasher.java diff --git a/Mage.Sets/src/mage/cards/e/ElementalSpectacle.java b/Mage.Sets/src/mage/cards/e/ElementalSpectacle.java index 8672f19367e..3d1d0e729c2 100644 --- a/Mage.Sets/src/mage/cards/e/ElementalSpectacle.java +++ b/Mage.Sets/src/mage/cards/e/ElementalSpectacle.java @@ -6,7 +6,6 @@ import mage.abilities.dynamicvalue.common.ColorsAmongControlledPermanentsCount; import mage.abilities.dynamicvalue.common.CreaturesYouControlCount; import mage.abilities.effects.common.CreateTokenEffect; import mage.abilities.effects.common.GainLifeEffect; -import mage.abilities.hint.common.DomainHint; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.AbilityWord; diff --git a/Mage.Sets/src/mage/cards/p/Prismabasher.java b/Mage.Sets/src/mage/cards/p/Prismabasher.java new file mode 100644 index 00000000000..fde277b0794 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/Prismabasher.java @@ -0,0 +1,55 @@ +package mage.cards.p; + +import java.util.UUID; +import mage.MageInt; +import mage.constants.SubType; +import mage.target.common.TargetControlledCreaturePermanent; +import mage.target.targetadjustment.TargetsCountAdjuster; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.dynamicvalue.common.ColorsAmongControlledPermanentsCount; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AbilityWord; +import mage.constants.CardType; + +/** + * + * @author muz + */ +public final class Prismabasher extends CardImpl { + + public Prismabasher(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}{G}"); + + this.subtype.add(SubType.ELEMENTAL); + this.power = new MageInt(6); + this.toughness = new MageInt(6); + + // Trample + this.addAbility(TrampleAbility.getInstance()); + + // Vivid -- When this creature enters, up to X target creatures you control get +X/+X until end of turn, where X is the number of colors among permanents you control. + Ability ability = new EntersBattlefieldTriggeredAbility( + new BoostTargetEffect( + ColorsAmongControlledPermanentsCount.ALL_PERMANENTS, + ColorsAmongControlledPermanentsCount.ALL_PERMANENTS + ).setText("up to X target creatures you control get +X/+X until end of turn, " + + "where X is the number of colors among permanents you control") + ); + ability.addTarget(new TargetControlledCreaturePermanent(0, 0)); + ability.setTargetAdjuster(new TargetsCountAdjuster(ColorsAmongControlledPermanentsCount.ALL_PERMANENTS)); + this.addAbility(ability.setAbilityWord(AbilityWord.VIVID).addHint(ColorsAmongControlledPermanentsCount.ALL_PERMANENTS.getHint())); + } + + private Prismabasher(final Prismabasher card) { + super(card); + } + + @Override + public Prismabasher copy() { + return new Prismabasher(this); + } +} diff --git a/Mage.Sets/src/mage/sets/LorwynEclipsed.java b/Mage.Sets/src/mage/sets/LorwynEclipsed.java index f03c7f87c50..55f0ecfa330 100644 --- a/Mage.Sets/src/mage/sets/LorwynEclipsed.java +++ b/Mage.Sets/src/mage/sets/LorwynEclipsed.java @@ -237,6 +237,7 @@ public final class LorwynEclipsed extends ExpansionSet { cards.add(new SetCardInfo("Plains", 274, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Plains", 279, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Prideful Feastling", 238, Rarity.COMMON, mage.cards.p.PridefulFeastling.class)); + cards.add(new SetCardInfo("Prismabasher", 188, Rarity.UNCOMMON, mage.cards.p.Prismabasher.class)); cards.add(new SetCardInfo("Prismatic Undercurrents", 189, Rarity.UNCOMMON, mage.cards.p.PrismaticUndercurrents.class)); cards.add(new SetCardInfo("Protective Response", 29, Rarity.UNCOMMON, mage.cards.p.ProtectiveResponse.class)); cards.add(new SetCardInfo("Puca's Eye", 259, Rarity.UNCOMMON, mage.cards.p.PucasEye.class));