From a2f6613edaac41cd7761c59d6eb6d6727d787ed5 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 5 Jan 2020 07:43:16 -0500 Subject: [PATCH] Implemented Naiad of Hidden Coves --- .../src/mage/cards/n/NaiadOfHiddenCoves.java | 44 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 45 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/n/NaiadOfHiddenCoves.java diff --git a/Mage.Sets/src/mage/cards/n/NaiadOfHiddenCoves.java b/Mage.Sets/src/mage/cards/n/NaiadOfHiddenCoves.java new file mode 100644 index 0000000000..8d2a93bc74 --- /dev/null +++ b/Mage.Sets/src/mage/cards/n/NaiadOfHiddenCoves.java @@ -0,0 +1,44 @@ +package mage.cards.n; + +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.common.NotMyTurnCondition; +import mage.abilities.decorator.ConditionalCostModificationEffect; +import mage.abilities.effects.common.cost.SpellsCostReductionControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class NaiadOfHiddenCoves extends CardImpl { + + public NaiadOfHiddenCoves(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, "{2}{U}"); + + this.subtype.add(SubType.NYMPH); + this.power = new MageInt(2); + this.toughness = new MageInt(3); + + // As long as it's not your turn, spells you cast cost {1} less to cast. + this.addAbility(new SimpleStaticAbility(new ConditionalCostModificationEffect( + new SpellsCostReductionControllerEffect(StaticFilters.FILTER_CARD, 1), + NotMyTurnCondition.instance, "As long as it's not your turn, " + + "spells you cast cost {1} less to cast." + ))); + } + + private NaiadOfHiddenCoves(final NaiadOfHiddenCoves card) { + super(card); + } + + @Override + public NaiadOfHiddenCoves copy() { + return new NaiadOfHiddenCoves(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index f3cd2231e1..b6f7d0735d 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -79,6 +79,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Mire's Grasp", 106, Rarity.COMMON, mage.cards.m.MiresGrasp.class)); cards.add(new SetCardInfo("Mountain", 253, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Nadir Kraken", 55, Rarity.RARE, mage.cards.n.NadirKraken.class)); + cards.add(new SetCardInfo("Naiad of Hidden Coves", 56, Rarity.COMMON, mage.cards.n.NaiadOfHiddenCoves.class)); cards.add(new SetCardInfo("Nessian Boar", 181, Rarity.RARE, mage.cards.n.NessianBoar.class)); cards.add(new SetCardInfo("Nylea's Intervention", 188, Rarity.RARE, mage.cards.n.NyleasIntervention.class)); cards.add(new SetCardInfo("Nylea, Keen-Eyed", 185, Rarity.MYTHIC, mage.cards.n.NyleaKeenEyed.class));