From 993e8d49470eb7945bd700535df1d2569a61578a Mon Sep 17 00:00:00 2001 From: xenohedron Date: Fri, 3 Nov 2023 22:13:21 -0400 Subject: [PATCH] implement [LCI] Walk with the Ancestors --- .../mage/cards/w/WalkWithTheAncestors.java | 39 +++++++++++++++++++ .../src/mage/sets/TheLostCavernsOfIxalan.java | 1 + 2 files changed, 40 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/w/WalkWithTheAncestors.java diff --git a/Mage.Sets/src/mage/cards/w/WalkWithTheAncestors.java b/Mage.Sets/src/mage/cards/w/WalkWithTheAncestors.java new file mode 100644 index 00000000000..debd59702d6 --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WalkWithTheAncestors.java @@ -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); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java index c04e4ebd242..cb28d9b9284 100644 --- a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java +++ b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java @@ -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));