[ONE] Implement Cankerbloom

This commit is contained in:
theelk801 2023-01-24 08:48:23 -05:00
parent 72d17c90a2
commit c6168e6179
2 changed files with 56 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));