forked from External/mage
41 lines
1.3 KiB
Java
41 lines
1.3 KiB
Java
|
|
package mage.cards.p;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.SimpleActivatedAbility;
|
|
import mage.abilities.costs.common.PayLifeCost;
|
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
|
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Zone;
|
|
import mage.filter.StaticFilters;
|
|
import mage.target.common.TargetCardInYourGraveyard;
|
|
|
|
/**
|
|
*
|
|
* @author Plopman
|
|
*/
|
|
public final class PhyrexianReclamation extends CardImpl {
|
|
|
|
public PhyrexianReclamation(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{B}");
|
|
|
|
// {1}{B}, Pay 2 life: Return target creature card from your graveyard to your hand.
|
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{B}"));
|
|
ability.addCost(new PayLifeCost(2));
|
|
ability.addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
private PhyrexianReclamation(final PhyrexianReclamation card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public PhyrexianReclamation copy() {
|
|
return new PhyrexianReclamation(this);
|
|
}
|
|
}
|