From e649fa3a7f2efa808115b581f05aa9265ce30b39 Mon Sep 17 00:00:00 2001 From: Muz Date: Wed, 7 Jan 2026 07:49:46 -0600 Subject: [PATCH] [ECC] Implement Abundant Countryside (#14177) --- .../src/mage/cards/a/AbundantCountryside.java | 65 +++++++++++++++++++ .../mage/sets/LorwynEclipsedCommander.java | 2 + Utils/mtg-cards-data.txt | 4 +- 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 Mage.Sets/src/mage/cards/a/AbundantCountryside.java diff --git a/Mage.Sets/src/mage/cards/a/AbundantCountryside.java b/Mage.Sets/src/mage/cards/a/AbundantCountryside.java new file mode 100644 index 00000000000..8ec80737abe --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AbundantCountryside.java @@ -0,0 +1,65 @@ +package mage.cards.a; + +import java.util.UUID; + +import mage.ConditionalMana; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.mana.ColorlessManaAbility; +import mage.abilities.mana.ConditionalAnyColorManaAbility; +import mage.abilities.mana.builder.ConditionalManaBuilder; +import mage.abilities.mana.conditional.CreatureCastConditionalMana; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.HumanToken; +import mage.game.permanent.token.ShapeshifterColorlessToken; + +/** + * + * @author muz + */ +public final class AbundantCountryside extends CardImpl { + + public AbundantCountryside(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + // {T}: Add {C}. + this.addAbility(new ColorlessManaAbility()); + + // {T}: Add one mana of any color. Spend this mana only to cast a creature spell. + this.addAbility(new ConditionalAnyColorManaAbility(1, new AbundantCountrysideManaBuilder())); + + // {6}, {T}: Create a 1/1 colorless Shapeshifter creature token with changeling. + Ability ability = new SimpleActivatedAbility( + new CreateTokenEffect(new ShapeshifterColorlessToken()), new ManaCostsImpl<>("{6}") + ); + ability.addCost(new TapSourceCost()); + this.addAbility(ability); + + } + + private AbundantCountryside(final AbundantCountryside card) { + super(card); + } + + @Override + public AbundantCountryside copy() { + return new AbundantCountryside(this); + } +} + +class AbundantCountrysideManaBuilder extends ConditionalManaBuilder { + @Override + public ConditionalMana build(Object... options) { + return new CreatureCastConditionalMana(this.mana); + } + + @Override + public String getRule() { + return "Spend this mana only to cast a creature spell"; + } +} diff --git a/Mage.Sets/src/mage/sets/LorwynEclipsedCommander.java b/Mage.Sets/src/mage/sets/LorwynEclipsedCommander.java index 3958a77b13a..a01d03807ef 100644 --- a/Mage.Sets/src/mage/sets/LorwynEclipsedCommander.java +++ b/Mage.Sets/src/mage/sets/LorwynEclipsedCommander.java @@ -19,6 +19,8 @@ public final class LorwynEclipsedCommander extends ExpansionSet { super("Lorwyn Eclipsed Commander", "ECC", ExpansionSet.buildDate(2026, 1, 23), SetType.SUPPLEMENTAL); this.hasBasicLands = false; // temporary + cards.add(new SetCardInfo("Abundant Countryside", 22, Rarity.RARE, mage.cards.a.AbundantCountryside.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Abundant Countryside", 42, Rarity.RARE, mage.cards.a.AbundantCountryside.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Abundant Growth", 97, Rarity.COMMON, mage.cards.a.AbundantGrowth.class)); cards.add(new SetCardInfo("Ancient Ziggurat", 144, Rarity.UNCOMMON, mage.cards.a.AncientZiggurat.class)); cards.add(new SetCardInfo("Arcane Signet", 55, Rarity.UNCOMMON, mage.cards.a.ArcaneSignet.class, NON_FULL_USE_VARIOUS)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 656f7238000..8caf11d5f6e 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -61209,7 +61209,7 @@ Puca's Covenant|Lorwyn Eclipsed Commander|18|R|{2}{G}|Enchantment|||Whenever a c Springleaf Parade|Lorwyn Eclipsed Commander|19|R|{G}{G}|Enchantment|||When this enchantment enters, create X 1/1 colorless Shapeshifter creature tokens with changeling.$Creature tokens you control have "{T}: Add one mana of any color."| Dread Tiller|Lorwyn Eclipsed Commander|20|R|{1}{B}{G}|Artifact Creature - Scarecrow|2|4|When this creature enters, put a -1/-1 counter on target creature.$Whenever a creature with a -1/-1 counter on it dies, you may put a land card from your hand or graveyard onto the battlefield tapped.| Wickersmith's Tools|Lorwyn Eclipsed Commander|21|R|{3}|Artifact|||Whenever one or more -1/-1 counters are put on a creature, put a charge counter on this artifact.${T}: Add one mana of any color.${5}, {T}, Sacrifice this artifact: Create X tapped 2/2 colorless Scarecrow artifact creature tokens, where X is the number of charge counters on this artifact.| -Abundant Countryside|Lorwyn Eclipsed Commander|22|R||Land|||{T}: Add {oC}.${T}: Add one mana of any color. Spend this mana only to cast a creature spell.${6}, {T}: Create a 1/1 colorless Shapeshifter creature token with changeling.| +Abundant Countryside|Lorwyn Eclipsed Commander|22|R||Land|||{T}: Add {C}.${T}: Add one mana of any color. Spend this mana only to cast a creature spell.${6}, {T}: Create a 1/1 colorless Shapeshifter creature token with changeling.| Rain-Slicked Copse|Lorwyn Eclipsed Commander|23|R||Land - Forest Island|||({T}: Add {G} or {U}.)$This land enters tapped.$Cycling {2}| Sodden Verdure|Lorwyn Eclipsed Commander|24|R||Land - Forest Island|||({T}: Add {G} or {U}.)$This land enters tapped unless you control two or more basic lands.| Belonging|Lorwyn Eclipsed Commander|25|R|{5}{W}|Creature - Elemental Incarnation|6|6|When this creature enters, create three 1/1 colorless Shapeshifter creature tokens with changeling.$Encore {6}{W}{W}| @@ -61229,7 +61229,7 @@ Puca's Covenant|Lorwyn Eclipsed Commander|38|R|{2}{G}|Enchantment|||Whenever a c Springleaf Parade|Lorwyn Eclipsed Commander|39|R|{G}{G}|Enchantment|||When this enchantment enters, create X 1/1 colorless Shapeshifter creature tokens with changeling.$Creature tokens you control have "{T}: Add one mana of any color."| Dread Tiller|Lorwyn Eclipsed Commander|40|R|{1}{B}{G}|Artifact Creature - Scarecrow|2|4|When this creature enters, put a -1/-1 counter on target creature.$Whenever a creature with a -1/-1 counter on it dies, you may put a land card from your hand or graveyard onto the battlefield tapped.| Wickersmith's Tools|Lorwyn Eclipsed Commander|41|R|{3}|Artifact|||Whenever one or more -1/-1 counters are put on a creature, put a charge counter on this artifact.${T}: Add one mana of any color.${5}, {T}, Sacrifice this artifact: Create X tapped 2/2 colorless Scarecrow artifact creature tokens, where X is the number of charge counters on this artifact.| -Abundant Countryside|Lorwyn Eclipsed Commander|42|R||Land|||{T}: Add {oC}.${T}: Add one mana of any color. Spend this mana only to cast a creature spell.${6}, {T}: Create a 1/1 colorless Shapeshifter creature token with changeling.| +Abundant Countryside|Lorwyn Eclipsed Commander|42|R||Land|||{T}: Add {C}.${T}: Add one mana of any color. Spend this mana only to cast a creature spell.${6}, {T}: Create a 1/1 colorless Shapeshifter creature token with changeling.| Rain-Slicked Copse|Lorwyn Eclipsed Commander|43|R||Land - Forest Island|||({T}: Add {G} or {U}.)$This land enters tapped.$Cycling {2}| Sodden Verdure|Lorwyn Eclipsed Commander|44|R||Land - Forest Island|||({T}: Add {G} or {U}.)$This land enters tapped unless you control two or more basic lands.| Distant Melody|Lorwyn Eclipsed Commander|45|C|{3}{U}|Sorcery|||Choose a creature type. Draw a card for each permanent you control of that type.|