From e7b989b4254edd174d01c488d96d86d13d2a7ec5 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 30 Oct 2020 19:05:26 -0400 Subject: [PATCH] [CMR] Implemented Aurora Phoenix --- Mage.Sets/src/mage/cards/a/AuroraPhoenix.java | 57 +++++++++++++++++++ Mage.Sets/src/mage/sets/CommanderLegends.java | 1 + 2 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AuroraPhoenix.java diff --git a/Mage.Sets/src/mage/cards/a/AuroraPhoenix.java b/Mage.Sets/src/mage/cards/a/AuroraPhoenix.java new file mode 100644 index 0000000000..e7d1e80529 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AuroraPhoenix.java @@ -0,0 +1,57 @@ +package mage.cards.a; + +import mage.MageInt; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.ReturnSourceFromGraveyardToHandEffect; +import mage.abilities.keyword.CascadeAbility; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.Zone; +import mage.filter.FilterSpell; +import mage.filter.predicate.mageobject.AbilityPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AuroraPhoenix extends CardImpl { + + private static final FilterSpell filter = new FilterSpell("spell with cascade"); + + static { + filter.add(new AbilityPredicate(CascadeAbility.class)); + } + + public AuroraPhoenix(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}{R}"); + + this.subtype.add(SubType.PHOENIX); + this.power = new MageInt(5); + this.toughness = new MageInt(3); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Cascade + this.addAbility(new CascadeAbility()); + + // Whenever you cast a spell with cascade, return Aurora Phoenix from your graveyard to your hand. + this.addAbility(new SpellCastControllerTriggeredAbility( + Zone.GRAVEYARD, new ReturnSourceFromGraveyardToHandEffect(), + filter, false, false + )); + } + + private AuroraPhoenix(final AuroraPhoenix card) { + super(card); + } + + @Override + public AuroraPhoenix copy() { + return new AuroraPhoenix(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegends.java b/Mage.Sets/src/mage/sets/CommanderLegends.java index 823b1022b8..7e7a1bca05 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegends.java +++ b/Mage.Sets/src/mage/sets/CommanderLegends.java @@ -33,6 +33,7 @@ public final class CommanderLegends extends ExpansionSet { cards.add(new SetCardInfo("Amphin Mutineer", 55, Rarity.RARE, mage.cards.a.AmphinMutineer.class)); cards.add(new SetCardInfo("Ancestral Blade", 5, Rarity.COMMON, mage.cards.a.AncestralBlade.class)); cards.add(new SetCardInfo("Arcane Signet", 297, Rarity.UNCOMMON, mage.cards.a.ArcaneSignet.class)); + cards.add(new SetCardInfo("Aurora Phoenix", 161, Rarity.RARE, mage.cards.a.AuroraPhoenix.class)); cards.add(new SetCardInfo("Averna, the Chaos Bloom", 269, Rarity.RARE, mage.cards.a.AvernaTheChaosBloom.class)); cards.add(new SetCardInfo("Bladegriff Prototype", 300, Rarity.RARE, mage.cards.b.BladegriffPrototype.class)); cards.add(new SetCardInfo("Brago, King Eternal", 516, Rarity.RARE, mage.cards.b.BragoKingEternal.class));