mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Implemented Everquill Phoenix
This commit is contained in:
parent
9acda75e31
commit
e91fc7d636
3 changed files with 86 additions and 0 deletions
|
|
@ -0,0 +1,39 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterCard;
|
||||
|
||||
public final class FeatherToken extends TokenImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("Phoenix card");
|
||||
|
||||
static {
|
||||
filter.add(SubType.PHOENIX.getPredicate());
|
||||
}
|
||||
|
||||
public FeatherToken() {
|
||||
super("Feather", "red artifact token named Feather with \"{1}, Sacrifice Feather: Return target Phoenix card from your graveyard to the battlefield tapped.\"");
|
||||
|
||||
this.cardType.add(CardType.ARTIFACT);
|
||||
this.color.setRed(true);
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new ReturnFromGraveyardToBattlefieldTargetEffect(true), new GenericManaCost(1)
|
||||
);
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private FeatherToken(final FeatherToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public FeatherToken copy() {
|
||||
return new FeatherToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue