From e581c110d0134f389f7e70a89bd8a15eeebafb9e Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 25 Jun 2019 19:03:47 -0400 Subject: [PATCH] Implemented Sorin's Guide --- Mage.Sets/src/mage/cards/s/SorinsGuide.java | 47 +++++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2020.java | 1 + 2 files changed, 48 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SorinsGuide.java diff --git a/Mage.Sets/src/mage/cards/s/SorinsGuide.java b/Mage.Sets/src/mage/cards/s/SorinsGuide.java new file mode 100644 index 0000000000..2301251f57 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SorinsGuide.java @@ -0,0 +1,47 @@ +package mage.cards.s; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.search.SearchLibraryGraveyardPutInHandEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.FilterCard; +import mage.filter.predicate.mageobject.NamePredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SorinsGuide extends CardImpl { + + private static final FilterCard filter = new FilterCard("Sorin, Vampire Lord"); + + static { + filter.add(new NamePredicate("Sorin, Vampire Lord")); + } + + public SorinsGuide(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}{B}"); + + this.subtype.add(SubType.VAMPIRE); + this.power = new MageInt(4); + this.toughness = new MageInt(2); + + // When Sorin's Guide enters the battlefield, you may search your library and/or graveyard for a card named Sorin, Vampire Lord, reveal it, and put it into your hand. If you search your library this way, shuffle it. + this.addAbility(new EntersBattlefieldTriggeredAbility( + new SearchLibraryGraveyardPutInHandEffect(filter, false, true) + )); + } + + private SorinsGuide(final SorinsGuide card) { + super(card); + } + + @Override + public SorinsGuide copy() { + return new SorinsGuide(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2020.java b/Mage.Sets/src/mage/sets/CoreSet2020.java index 85b194b158..02a54992ed 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2020.java +++ b/Mage.Sets/src/mage/sets/CoreSet2020.java @@ -268,6 +268,7 @@ public final class CoreSet2020 extends ExpansionSet { cards.add(new SetCardInfo("Skyknight Vanguard", 218, Rarity.UNCOMMON, mage.cards.s.SkyknightVanguard.class)); cards.add(new SetCardInfo("Sleep Paralysis", 75, Rarity.COMMON, mage.cards.s.SleepParalysis.class)); cards.add(new SetCardInfo("Sorcerer of the Fang", 114, Rarity.COMMON, mage.cards.s.SorcererOfTheFang.class)); + cards.add(new SetCardInfo("Sorin's Guide", 292, Rarity.RARE, mage.cards.s.SorinsGuide.class)); cards.add(new SetCardInfo("Sorin, Imperious Bloodlord", 115, Rarity.MYTHIC, mage.cards.s.SorinImperiousBloodlord.class)); cards.add(new SetCardInfo("Sorin, Vampire Lord", 290, Rarity.MYTHIC, mage.cards.s.SorinVampireLord.class)); cards.add(new SetCardInfo("Soul Salvage", 116, Rarity.COMMON, mage.cards.s.SoulSalvage.class));