From c6168e617975a8d35297acfc4efa534a4e6e4d30 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Tue, 24 Jan 2023 08:48:23 -0500 Subject: [PATCH] [ONE] Implement Cankerbloom --- Mage.Sets/src/mage/cards/c/Cankerbloom.java | 55 +++++++++++++++++++ .../src/mage/sets/PhyrexiaAllWillBeOne.java | 1 + 2 files changed, 56 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/Cankerbloom.java diff --git a/Mage.Sets/src/mage/cards/c/Cankerbloom.java b/Mage.Sets/src/mage/cards/c/Cankerbloom.java new file mode 100644 index 0000000000..ed5738925e --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/Cankerbloom.java @@ -0,0 +1,55 @@ +package mage.cards.c; + +import java.util.UUID; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.Mode; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.abilities.effects.common.counter.ProliferateEffect; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetArtifactPermanent; +import mage.target.common.TargetEnchantmentPermanent; + +/** + * @author TheElk801 + */ +public final class Cankerbloom extends CardImpl { + + public Cankerbloom(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}"); + + this.subtype.add(SubType.PHYREXIAN); + this.subtype.add(SubType.FUNGUS); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // {1}, Sacrifice Cankerbloom: Choose one -- + // * Destroy target artifact. + Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new GenericManaCost(1)); + ability.addCost(new SacrificeSourceCost()); + ability.addTarget(new TargetArtifactPermanent()); + + // * Destroy target enchantment. + ability.addMode(new Mode(new DestroyTargetEffect()).addTarget(new TargetEnchantmentPermanent())); + + // * Proliferate. + ability.addMode(new Mode(new ProliferateEffect(false))); + this.addAbility(ability); + } + + private Cankerbloom(final Cankerbloom card) { + super(card); + } + + @Override + public Cankerbloom copy() { + return new Cankerbloom(this); + } +} diff --git a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java index 01a55a1b7a..65935d10f1 100644 --- a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java +++ b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java @@ -36,6 +36,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet { cards.add(new SetCardInfo("Blue Sun's Twilight", 43, Rarity.RARE, mage.cards.b.BlueSunsTwilight.class)); cards.add(new SetCardInfo("Bonepicker Skirge", 86, Rarity.COMMON, mage.cards.b.BonepickerSkirge.class)); cards.add(new SetCardInfo("Cacophony Scamp", 124, Rarity.UNCOMMON, mage.cards.c.CacophonyScamp.class)); + cards.add(new SetCardInfo("Cankerbloom", 294, Rarity.UNCOMMON, mage.cards.c.Cankerbloom.class)); cards.add(new SetCardInfo("Chittering Skitterling", 87, Rarity.COMMON, mage.cards.c.ChitteringSkitterling.class)); cards.add(new SetCardInfo("Copperline Gorge", 249, Rarity.RARE, mage.cards.c.CopperlineGorge.class)); cards.add(new SetCardInfo("Darkslick Shores", 372, Rarity.RARE, mage.cards.d.DarkslickShores.class));