From c60a4cfe60b4cc8fde8a967fe6f637240c558062 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 8 Jan 2026 09:59:11 -0500 Subject: [PATCH] [ECL] Implement Glister Bairn --- Mage.Sets/src/mage/cards/g/GlisterBairn.java | 47 ++++++++++++++++++++ Mage.Sets/src/mage/sets/LorwynEclipsed.java | 1 + 2 files changed, 48 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GlisterBairn.java diff --git a/Mage.Sets/src/mage/cards/g/GlisterBairn.java b/Mage.Sets/src/mage/cards/g/GlisterBairn.java new file mode 100644 index 00000000000..c8ca5bc513c --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GlisterBairn.java @@ -0,0 +1,47 @@ +package mage.cards.g; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.dynamicvalue.common.ColorsAmongControlledPermanentsCount; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.triggers.BeginningOfCombatTriggeredAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AbilityWord; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.common.TargetControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class GlisterBairn extends CardImpl { + + public GlisterBairn(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G/U}{G/U}{G/U}"); + + this.subtype.add(SubType.OUPHE); + this.power = new MageInt(1); + this.toughness = new MageInt(4); + + // Vivid -- At the beginning of combat on your turn, another target creature you control gets +X/+X until end of turn, where X is the number of colors among permanents you control. + Ability ability = new BeginningOfCombatTriggeredAbility(new BoostTargetEffect( + ColorsAmongControlledPermanentsCount.ALL_PERMANENTS, + ColorsAmongControlledPermanentsCount.ALL_PERMANENTS + ).setText("another target creature you control gets +X/+X until end of turn, " + + "where X is the number of colors among permanents you control")); + ability.addTarget(new TargetControlledCreaturePermanent()); + this.addAbility(ability.setAbilityWord(AbilityWord.VIVID).addHint(ColorsAmongControlledPermanentsCount.ALL_PERMANENTS.getHint())); + } + + private GlisterBairn(final GlisterBairn card) { + super(card); + } + + @Override + public GlisterBairn copy() { + return new GlisterBairn(this); + } +} diff --git a/Mage.Sets/src/mage/sets/LorwynEclipsed.java b/Mage.Sets/src/mage/sets/LorwynEclipsed.java index b58aadd2378..9a6aabe476b 100644 --- a/Mage.Sets/src/mage/sets/LorwynEclipsed.java +++ b/Mage.Sets/src/mage/sets/LorwynEclipsed.java @@ -95,6 +95,7 @@ public final class LorwynEclipsed extends ExpansionSet { cards.add(new SetCardInfo("Gallant Fowlknight", 17, Rarity.COMMON, mage.cards.g.GallantFowlknight.class)); cards.add(new SetCardInfo("Gangly Stompling", 226, Rarity.COMMON, mage.cards.g.GanglyStompling.class)); cards.add(new SetCardInfo("Glamer Gifter", 49, Rarity.UNCOMMON, mage.cards.g.GlamerGifter.class)); + cards.add(new SetCardInfo("Glister Bairn", 227, Rarity.UNCOMMON, mage.cards.g.GlisterBairn.class)); cards.add(new SetCardInfo("Goatnap", 142, Rarity.UNCOMMON, mage.cards.g.Goatnap.class)); cards.add(new SetCardInfo("Great Forest Druid", 178, Rarity.COMMON, mage.cards.g.GreatForestDruid.class)); cards.add(new SetCardInfo("Gristle Glutton", 144, Rarity.COMMON, mage.cards.g.GristleGlutton.class));