From 27794cb075e34aedeb0a92f67f2d26084f783b53 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 12 Jul 2024 11:52:15 -0400 Subject: [PATCH] [BLB] Implement Bumbleflower's Sharepot --- .../mage/cards/b/BumbleflowersSharepot.java | 46 +++++++++++++++++++ Mage.Sets/src/mage/sets/Bloomburrow.java | 1 + Utils/mtg-cards-data.txt | 1 + 3 files changed, 48 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BumbleflowersSharepot.java diff --git a/Mage.Sets/src/mage/cards/b/BumbleflowersSharepot.java b/Mage.Sets/src/mage/cards/b/BumbleflowersSharepot.java new file mode 100644 index 00000000000..133595625d9 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BumbleflowersSharepot.java @@ -0,0 +1,46 @@ +package mage.cards.b; + +import mage.abilities.Ability; +import mage.abilities.common.ActivateAsSorceryActivatedAbility; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.FoodToken; +import mage.target.common.TargetNonlandPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BumbleflowersSharepot extends CardImpl { + + public BumbleflowersSharepot(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}"); + + // When Bumbleflower's Sharepot enters, create a Food token. + this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new FoodToken()))); + + // {5}, {T}, Sacrifice Bumbleflower's Sharepot: Destroy target nonland permanent. Activate only as a sorcery. + Ability ability = new ActivateAsSorceryActivatedAbility(new DestroyTargetEffect(), new GenericManaCost(5)); + ability.addCost(new TapSourceCost()); + ability.addCost(new SacrificeSourceCost()); + ability.addTarget(new TargetNonlandPermanent()); + this.addAbility(ability); + } + + private BumbleflowersSharepot(final BumbleflowersSharepot card) { + super(card); + } + + @Override + public BumbleflowersSharepot copy() { + return new BumbleflowersSharepot(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Bloomburrow.java b/Mage.Sets/src/mage/sets/Bloomburrow.java index 12d8d85cec2..a55246f1e62 100644 --- a/Mage.Sets/src/mage/sets/Bloomburrow.java +++ b/Mage.Sets/src/mage/sets/Bloomburrow.java @@ -33,6 +33,7 @@ public final class Bloomburrow extends ExpansionSet { cards.add(new SetCardInfo("Brazen Collector", 128, Rarity.UNCOMMON, mage.cards.b.BrazenCollector.class)); cards.add(new SetCardInfo("Bria, Riptide Rogue", 379, Rarity.MYTHIC, mage.cards.b.BriaRiptideRogue.class)); cards.add(new SetCardInfo("Brightblade Stoat", 4, Rarity.UNCOMMON, mage.cards.b.BrightbladeStoat.class)); + cards.add(new SetCardInfo("Bumbleflower's Sharepot", 244, Rarity.COMMON, mage.cards.b.BumbleflowersSharepot.class)); cards.add(new SetCardInfo("Burrowguard Mentor", 206, Rarity.UNCOMMON, mage.cards.b.BurrowguardMentor.class)); cards.add(new SetCardInfo("Byrke, Long Ear of the Law", 380, Rarity.MYTHIC, mage.cards.b.ByrkeLongEarOfTheLaw.class)); cards.add(new SetCardInfo("Byway Barterer", 129, Rarity.RARE, mage.cards.b.BywayBarterer.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index cea85ad7cff..74a9c7b32f2 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -53193,6 +53193,7 @@ Wandertale Mentor|Bloomburrow|240|U|{R}{G}|Creature - Raccoon Bard|2|2|Whenever Ygra, Eater of All|Bloomburrow|241|M|{3}{B}{G}|Legendary Creature - Elemental Cat|6|6|Ward--Sacrifice a Food.$Other creatures are Food artifacts in addition to their other types and have "{2}, {T}, Sacrifice this permanent: You gain 3 life."$Whenever a Food is put into a graveyard from the battlefield, put two +1/+1 counters on Ygra, Eater of All.| Zoraline, Cosmos Caller|Bloomburrow|242|R|{1}{W}{B}|Legendary Creature - Bat Cleric|3|3|Flying, vigilance$Whenever a Bat you control attacks, you gain 1 life.$Whenever Zoraline enters or attacks, you may pay {W}{B} and 2 life. When you do, return target nonland permanent card with mana value 3 or less from your graveyard to the battlefield with a finality counter on it.| Barkform Harvester|Bloomburrow|243|C|{3}|Artifact Creature - Shapeshifter|2|3|Changeling$Reach${2}: Put target card from your graveyard on the bottom of your library.| +Bumbleflower's Sharepot|Bloomburrow|244|C|{2}|Artifact|||When Bumbleflower's Sharepot enters, create a Food token.${5}, {T}, Sacrifice Bumbleflower's Sharepot: Destroy target nonland permanent. Activate only as a sorcery.| Hidden Grotto|Bloomburrow|254|C||Land|||When Hidden Grotto enters, surveil 1.${T}: Add {C}.${1}, {T}: Add one mana of any color.| Lilypad Village|Bloomburrow|255|U||Land|||{T}: Add {C}.${T}: Add {U}. Spend this mana only to cast a creature spell.${U}, {T}: Surveil 2. Activate only if a Bird, Frog, Otter, or Rat entered the battlefield under your control this turn.| Lupinflower Village|Bloomburrow|256|U||Land|||{T}: Add {C}.${T}: Add {W}. Spend this mana only to cast a creature spell.${1}{W}, {T}, Sacrifice Lupinflower Village: Look at the top six cards of your library. You may reveal a Bat, Bird, Mouse, or Rabbit card from among them and put it into your hand. Put the rest on the bottom of your library in a random order.|