forked from External/mage
implement [LCI] Walk with the Ancestors
This commit is contained in:
parent
6d6f661770
commit
993e8d4947
2 changed files with 40 additions and 0 deletions
39
Mage.Sets/src/mage/cards/w/WalkWithTheAncestors.java
Normal file
39
Mage.Sets/src/mage/cards/w/WalkWithTheAncestors.java
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
package mage.cards.w;
|
||||
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
||||
import mage.abilities.effects.keyword.DiscoverEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.common.FilterPermanentCard;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author xenohedron
|
||||
*/
|
||||
public final class WalkWithTheAncestors extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterPermanentCard("permanent card from your graveyard");
|
||||
|
||||
public WalkWithTheAncestors(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{G}");
|
||||
|
||||
// Return up to one target permanent card from your graveyard to your hand. Discover 4.
|
||||
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(0, 1, filter));
|
||||
this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
|
||||
this.getSpellAbility().addEffect(new DiscoverEffect(4));
|
||||
|
||||
}
|
||||
|
||||
private WalkWithTheAncestors(final WalkWithTheAncestors card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WalkWithTheAncestors copy() {
|
||||
return new WalkWithTheAncestors(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -259,6 +259,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Vito, Fanatic of Aclazotz", 243, Rarity.MYTHIC, mage.cards.v.VitoFanaticOfAclazotz.class));
|
||||
cards.add(new SetCardInfo("Volatile Wanderglyph", 172, Rarity.COMMON, mage.cards.v.VolatileWanderglyph.class));
|
||||
cards.add(new SetCardInfo("Wail of the Forgotten", 244, Rarity.RARE, mage.cards.w.WailOfTheForgotten.class));
|
||||
cards.add(new SetCardInfo("Walk with the Ancestors", 218, Rarity.COMMON, mage.cards.w.WalkWithTheAncestors.class));
|
||||
cards.add(new SetCardInfo("Waterlogged Hulk", 83, Rarity.UNCOMMON, mage.cards.w.WaterloggedHulk.class));
|
||||
cards.add(new SetCardInfo("Watertight Gondola", 83, Rarity.UNCOMMON, mage.cards.w.WatertightGondola.class));
|
||||
cards.add(new SetCardInfo("Waterwind Scout", 84, Rarity.COMMON, mage.cards.w.WaterwindScout.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue