From a3a0330d1680f1c454e5f38c1df0c365c6480814 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 16 Jan 2021 20:39:53 -0500 Subject: [PATCH] [KHM] Implemented Horizon Seeker --- Mage.Sets/src/mage/cards/h/HorizonSeeker.java | 42 +++++++++++++++++++ Mage.Sets/src/mage/sets/Kaldheim.java | 1 + Utils/mtg-cards-data.txt | 1 + 3 files changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/h/HorizonSeeker.java diff --git a/Mage.Sets/src/mage/cards/h/HorizonSeeker.java b/Mage.Sets/src/mage/cards/h/HorizonSeeker.java new file mode 100644 index 0000000000..ef7cc7fda1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HorizonSeeker.java @@ -0,0 +1,42 @@ +package mage.cards.h; + +import mage.MageInt; +import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect; +import mage.abilities.keyword.BoastAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.StaticFilters; +import mage.target.common.TargetCardInLibrary; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HorizonSeeker extends CardImpl { + + public HorizonSeeker(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.WARRIOR); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // Boast — {1}{G}: Search your library for a basic land card, reveal it, put it into your hand, then shuffle your library. + this.addAbility(new BoastAbility(new SearchLibraryPutInHandEffect( + new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND_A), true + ), "{1}{G}")); + } + + private HorizonSeeker(final HorizonSeeker card) { + super(card); + } + + @Override + public HorizonSeeker copy() { + return new HorizonSeeker(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Kaldheim.java b/Mage.Sets/src/mage/sets/Kaldheim.java index f934f14624..35b758142b 100644 --- a/Mage.Sets/src/mage/sets/Kaldheim.java +++ b/Mage.Sets/src/mage/sets/Kaldheim.java @@ -162,6 +162,7 @@ public final class Kaldheim extends ExpansionSet { cards.add(new SetCardInfo("Harald, King of Skemfar", 212, Rarity.UNCOMMON, mage.cards.h.HaraldKingOfSkemfar.class)); cards.add(new SetCardInfo("Hengegate Pathway", 260, Rarity.RARE, mage.cards.h.HengegatePathway.class)); cards.add(new SetCardInfo("Highland Forest", 261, Rarity.COMMON, mage.cards.h.HighlandForest.class)); + cards.add(new SetCardInfo("Horizon Seeker", 175, Rarity.COMMON, mage.cards.h.HorizonSeeker.class)); cards.add(new SetCardInfo("Ice Tunnel", 262, Rarity.COMMON, mage.cards.i.IceTunnel.class)); cards.add(new SetCardInfo("Infernal Pet", 99, Rarity.COMMON, mage.cards.i.InfernalPet.class)); cards.add(new SetCardInfo("Inga Rune-Eyes", 64, Rarity.UNCOMMON, mage.cards.i.IngaRuneEyes.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index e84c3a1bcc..590d11433f 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -40152,6 +40152,7 @@ Fynn, the Fangbearer|Kaldheim|170|U|{1}{G}|Legendary Creature - Human Warrior|1| Glittering Frost|Kaldheim|171|C|{2}{G}|Snow Enchantment - Aura|||Enchant land$Enchanted land is snow.$Whenever enchanted land is tapped for mana, its controller adds an additional one mana of any color.| Gnottvold Recluse|Kaldheim|172|C|{2}{G}|Creature - Spider|4|2|Reach| Guardian Gladewalker|Kaldheim|174|C|{1}{G}|Creature - Shapeshifter|1|1|Changeling$When Guardian Gladewalker enters the battlefield, put a +1/+1 counter on target creature.| +Horizon Seeker|Kaldheim|175|C|{2}{G}|Creature - Human Warrior|3|2|Boast — {1}{G}: Search your library for a basic land card, reveal it, put it into your hand, then shuffle your library.| Jaspera Sentinel|Kaldheim|178|C|{G}|Creature - Elf Rogue|1|2|Reach${T}, Tap an untapped creature you control: Add one mana of any color.| Jorn, God of Winter|Kaldheim|179|R|{2}{G}|Legendary Snow Creature - God|3|3|Whenever Jorn attacks, untap each snow permanent you control.| Kaldring, the Rimestaff|Kaldheim|179|R|{1}{U}{B}|Legendary Snow Artifact|||{T}: You may play target snow permanent card from your graveyard this turn. If you do, it enters the battlefield tapped.|