forked from External/mage
[TDM] Implement Heritage Reclamation
This commit is contained in:
parent
f3e3a0c5c8
commit
5ba0bbe7bf
2 changed files with 48 additions and 0 deletions
47
Mage.Sets/src/mage/cards/h/HeritageReclamation.java
Normal file
47
Mage.Sets/src/mage/cards/h/HeritageReclamation.java
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.ExileTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetArtifactPermanent;
|
||||
import mage.target.common.TargetCardInGraveyard;
|
||||
import mage.target.common.TargetEnchantmentPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class HeritageReclamation extends CardImpl {
|
||||
|
||||
public HeritageReclamation(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}");
|
||||
|
||||
// Choose one --
|
||||
// * Destroy target artifact.
|
||||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetArtifactPermanent());
|
||||
|
||||
// * Destroy target enchantment.
|
||||
this.getSpellAbility().addMode(new Mode(new DestroyTargetEffect())
|
||||
.addTarget(new TargetEnchantmentPermanent()));
|
||||
|
||||
// * Exile up to one target card from a graveyard. Draw a card.
|
||||
this.getSpellAbility().addMode(new Mode(new ExileTargetEffect())
|
||||
.addEffect(new DrawCardSourceControllerEffect(1))
|
||||
.addTarget(new TargetCardInGraveyard(0, 1)));
|
||||
}
|
||||
|
||||
private HeritageReclamation(final HeritageReclamation card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HeritageReclamation copy() {
|
||||
return new HeritageReclamation(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -46,6 +46,7 @@ public final class TarkirDragonstorm extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Fortress Kin-Guard", 12, Rarity.COMMON, mage.cards.f.FortressKinGuard.class));
|
||||
cards.add(new SetCardInfo("Fresh Start", 46, Rarity.UNCOMMON, mage.cards.f.FreshStart.class));
|
||||
cards.add(new SetCardInfo("Frontier Bivouac", 256, Rarity.UNCOMMON, mage.cards.f.FrontierBivouac.class));
|
||||
cards.add(new SetCardInfo("Heritage Reclamation", 145, Rarity.COMMON, mage.cards.h.HeritageReclamation.class));
|
||||
cards.add(new SetCardInfo("Inevitable Defeat", 194, Rarity.RARE, mage.cards.i.InevitableDefeat.class));
|
||||
cards.add(new SetCardInfo("Island", 279, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Jade-Cast Sentinel", 243, Rarity.COMMON, mage.cards.j.JadeCastSentinel.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue