From d91f64c7e56027ac79e2b5617cbf2c1f6c3ab970 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 7 Jan 2020 07:53:08 -0500 Subject: [PATCH] Implemented Phoenix of Ash --- Mage.Sets/src/mage/cards/p/PhoenixOfAsh.java | 57 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/PhoenixOfAsh.java diff --git a/Mage.Sets/src/mage/cards/p/PhoenixOfAsh.java b/Mage.Sets/src/mage/cards/p/PhoenixOfAsh.java new file mode 100644 index 0000000000..0576e1d045 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PhoenixOfAsh.java @@ -0,0 +1,57 @@ +package mage.cards.p; + +import mage.MageInt; +import mage.abilities.common.EscapesWithAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.continuous.BoostSourceEffect; +import mage.abilities.keyword.EscapeAbility; +import mage.abilities.keyword.FlyingAbility; +import mage.abilities.keyword.HasteAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class PhoenixOfAsh extends CardImpl { + + public PhoenixOfAsh(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}{R}"); + + this.subtype.add(SubType.PHOENIX); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Haste + this.addAbility(HasteAbility.getInstance()); + + // {2}{R}: Phoenix of Ash gets +2/+0 until end of turn. + this.addAbility(new SimpleActivatedAbility( + new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{2}{R}") + )); + + // Escape — {2}{R}{R}, Exile three other cards from your graveyard. + this.addAbility(new EscapeAbility(this, "{2}{R}{R}", 3)); + + // Phoenix of Ash escapes with a +1/+1 counter on it. + this.addAbility(new EscapesWithAbility(1)); + } + + private PhoenixOfAsh(final PhoenixOfAsh card) { + super(card); + } + + @Override + public PhoenixOfAsh copy() { + return new PhoenixOfAsh(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index 3c15a5ffc0..ea49d14fbc 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -103,6 +103,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Oread of Mountain's Blaze", 146, Rarity.COMMON, mage.cards.o.OreadOfMountainsBlaze.class)); cards.add(new SetCardInfo("Ox of Agonas", 147, Rarity.MYTHIC, mage.cards.o.OxOfAgonas.class)); cards.add(new SetCardInfo("Pharika's Spawn", 112, Rarity.UNCOMMON, mage.cards.p.PharikasSpawn.class)); + cards.add(new SetCardInfo("Phoenix of Ash", 148, Rarity.RARE, mage.cards.p.PhoenixOfAsh.class)); cards.add(new SetCardInfo("Pious Wayfarer", 32, Rarity.COMMON, mage.cards.p.PiousWayfarer.class)); cards.add(new SetCardInfo("Plains", 250, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Polukranos, Unchained", 224, Rarity.MYTHIC, mage.cards.p.PolukranosUnchained.class));