From d6b9e3240eccb35297235023e2c1b16170026eb6 Mon Sep 17 00:00:00 2001 From: Loki Date: Sat, 3 Sep 2011 00:07:03 +0300 Subject: [PATCH] [ISD] Angel of Flight Alabaster --- .../innistrad/AngelOfFlightAlabaster.java | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Mage.Sets/src/mage/sets/innistrad/AngelOfFlightAlabaster.java diff --git a/Mage.Sets/src/mage/sets/innistrad/AngelOfFlightAlabaster.java b/Mage.Sets/src/mage/sets/innistrad/AngelOfFlightAlabaster.java new file mode 100644 index 0000000000..1c0cd1b349 --- /dev/null +++ b/Mage.Sets/src/mage/sets/innistrad/AngelOfFlightAlabaster.java @@ -0,0 +1,52 @@ +package mage.sets.innistrad; + +import mage.Constants; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.BeginningOfUpkeepTriggeredAbility; +import mage.abilities.effects.common.ReturnToHandTargetEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.filter.Filter; +import mage.filter.FilterCard; +import mage.target.Target; +import mage.target.common.TargetCardInYourGraveyard; + +import java.util.UUID; + +public class AngelOfFlightAlabaster extends CardImpl { + private static final FilterCard filter = new FilterCard("Spirit card"); + + static { + filter.getSubtype().add("Spirit"); + filter.setScopeSubtype(Filter.ComparisonScope.Any); + + } + + public AngelOfFlightAlabaster(UUID ownerId) { + super(ownerId, 2, "Angel of Flight Alabaster", Constants.Rarity.RARE, new Constants.CardType[]{Constants.CardType.CREATURE}, "{4{W}"); + this.expansionSetCode = "ISD"; + this.subtype.add("Angel"); + this.color.setWhite(true); + this.power = new MageInt(4); + this.toughness = new MageInt(4); + + this.addAbility(FlyingAbility.getInstance()); + Ability ability = new BeginningOfUpkeepTriggeredAbility(new ReturnToHandTargetEffect(), Constants.TargetController.YOU, false); + Target target = new TargetCardInYourGraveyard(filter); + target.setRequired(true); + ability.addTarget(target); + this.addAbility(ability); + + + } + + public AngelOfFlightAlabaster(final AngelOfFlightAlabaster card) { + super(card); + } + + @Override + public AngelOfFlightAlabaster copy() { + return new AngelOfFlightAlabaster(this); + } +}