From 5f5e7bbc51644a095464e83568bf85402fe4eee4 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 25 Mar 2021 20:29:24 -0400 Subject: [PATCH] [STX] Implemented Furycalm Snarl --- Mage.Sets/src/mage/cards/f/FurycalmSnarl.java | 57 +++++++++++++++++++ .../mage/sets/StrixhavenSchoolOfMages.java | 1 + 2 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/f/FurycalmSnarl.java diff --git a/Mage.Sets/src/mage/cards/f/FurycalmSnarl.java b/Mage.Sets/src/mage/cards/f/FurycalmSnarl.java new file mode 100644 index 0000000000..8bcef259f4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FurycalmSnarl.java @@ -0,0 +1,57 @@ +package mage.cards.f; + +import mage.abilities.common.AsEntersBattlefieldAbility; +import mage.abilities.costs.common.RevealTargetFromHandCost; +import mage.abilities.effects.common.TapSourceUnlessPaysEffect; +import mage.abilities.mana.RedManaAbility; +import mage.abilities.mana.WhiteManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.FilterCard; +import mage.filter.predicate.Predicates; +import mage.target.common.TargetCardInHand; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class FurycalmSnarl extends CardImpl { + + private static final FilterCard filter = new FilterCard("a Mountain or Plains card from your hand"); + + static { + filter.add(Predicates.or( + SubType.MOUNTAIN.getPredicate(), + SubType.PLAINS.getPredicate() + )); + } + + public FurycalmSnarl(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + + // As Furycalm Snarl enters the battlefield, you may reveal a Mountain or Plains card from your hand. If you don't, Furycalm Snarl enters the battlefield tapped. + this.addAbility(new AsEntersBattlefieldAbility( + new TapSourceUnlessPaysEffect( + new RevealTargetFromHandCost(new TargetCardInHand(filter)) + ), "you may reveal a Mountain or Plains card from your hand. " + + "If you don't, {this} enters the battlefield tapped" + )); + + // {T}: Add {R} or {W}. + this.addAbility(new RedManaAbility()); + this.addAbility(new WhiteManaAbility()); + } + + private FurycalmSnarl(final FurycalmSnarl card) { + super(card); + } + + @Override + public FurycalmSnarl copy() { + return new FurycalmSnarl(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java index e76b93dcde..300c3e079a 100644 --- a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java +++ b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java @@ -30,6 +30,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet { cards.add(new SetCardInfo("Archmage Emeritus", 37, Rarity.RARE, mage.cards.a.ArchmageEmeritus.class)); cards.add(new SetCardInfo("Eager First-Year", 16, Rarity.COMMON, mage.cards.e.EagerFirstYear.class)); cards.add(new SetCardInfo("Frostboil Snarl", 265, Rarity.RARE, mage.cards.f.FrostboilSnarl.class)); + cards.add(new SetCardInfo("Furycalm Snarl", 266, Rarity.RARE, mage.cards.f.FurycalmSnarl.class)); cards.add(new SetCardInfo("Kasmina, Enigma Sage", 196, Rarity.MYTHIC, mage.cards.k.KasminaEnigmaSage.class)); cards.add(new SetCardInfo("Lorehold Command", 199, Rarity.RARE, mage.cards.l.LoreholdCommand.class)); cards.add(new SetCardInfo("Necroblossom Snarl", 269, Rarity.RARE, mage.cards.n.NecroblossomSnarl.class));