From 5439a9afab4f0995f85aeeb37b00a34b81a7b663 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 6 Apr 2020 17:40:11 -0400 Subject: [PATCH] Implemented Cubwarden --- Mage.Sets/src/mage/cards/c/Cubwarden.java | 46 +++++++++++++++++++ .../src/mage/sets/IkoriaLairOfBehemoths.java | 1 + 2 files changed, 47 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/Cubwarden.java diff --git a/Mage.Sets/src/mage/cards/c/Cubwarden.java b/Mage.Sets/src/mage/cards/c/Cubwarden.java new file mode 100644 index 0000000000..91897e4f14 --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/Cubwarden.java @@ -0,0 +1,46 @@ +package mage.cards.c; + +import mage.MageInt; +import mage.abilities.common.MutatesSourceTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.keyword.LifelinkAbility; +import mage.abilities.keyword.MutateAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.game.permanent.token.CatToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Cubwarden extends CardImpl { + + public Cubwarden(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}"); + + this.subtype.add(SubType.CAT); + this.power = new MageInt(3); + this.toughness = new MageInt(5); + + // Mutate {2}{W}{W} + this.addAbility(new MutateAbility(this, "{2}{W}{W}")); + + // Lifelink + this.addAbility(LifelinkAbility.getInstance()); + + // Whenever this creature mutates, create two 1/1 white Cat creature tokens with lifelink. + this.addAbility(new MutatesSourceTriggeredAbility(new CreateTokenEffect(new CatToken(), 2))); + } + + private Cubwarden(final Cubwarden card) { + super(card); + } + + @Override + public Cubwarden copy() { + return new Cubwarden(this); + } +} diff --git a/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java b/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java index 1551e08690..450ce34a2e 100644 --- a/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java +++ b/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java @@ -43,6 +43,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet { cards.add(new SetCardInfo("Cloudpiercer", 112, Rarity.COMMON, mage.cards.c.Cloudpiercer.class)); cards.add(new SetCardInfo("Colossification", 148, Rarity.RARE, mage.cards.c.Colossification.class)); cards.add(new SetCardInfo("Crystalline Giant", 234, Rarity.RARE, mage.cards.c.CrystallineGiant.class)); + cards.add(new SetCardInfo("Cubwarden", 7, Rarity.RARE, mage.cards.c.Cubwarden.class)); cards.add(new SetCardInfo("Dire Tactics", 183, Rarity.UNCOMMON, mage.cards.d.DireTactics.class)); cards.add(new SetCardInfo("Dirge Bat", 84, Rarity.RARE, mage.cards.d.DirgeBat.class)); cards.add(new SetCardInfo("Drannith Magistrate", 11, Rarity.RARE, mage.cards.d.DrannithMagistrate.class));