mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
[CMR] Implemented Aurora Phoenix
This commit is contained in:
parent
eac3d15c33
commit
e7b989b425
2 changed files with 58 additions and 0 deletions
57
Mage.Sets/src/mage/cards/a/AuroraPhoenix.java
Normal file
57
Mage.Sets/src/mage/cards/a/AuroraPhoenix.java
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue