[G18] added Immortal Phoenix

This commit is contained in:
Oleg Agafonov 2019-05-24 15:06:21 +04:00
parent f2092f35ba
commit 2e6a1e9311

View file

@ -0,0 +1,40 @@
package mage.cards.i;
import mage.MageInt;
import mage.abilities.common.DiesTriggeredAbility;
import mage.abilities.effects.common.ReturnToHandSourceEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util.UUID;
/**
* @author JayDi85
*/
public final class ImmortalPhoenix extends CardImpl {
public ImmortalPhoenix(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());
// When Immortal Phoenix dies, return it to its owners hand.
this.addAbility(new DiesTriggeredAbility(new ReturnToHandSourceEffect()));
}
public ImmortalPhoenix(final ImmortalPhoenix card) {
super(card);
}
@Override
public ImmortalPhoenix copy() {
return new ImmortalPhoenix(this);
}
}