From 1862ad6a2ad0115c740feb888fa44cc91e16a6fa Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 2 Nov 2021 19:12:52 -0400 Subject: [PATCH] [VOW] Implemented Inspired Idea --- Mage.Sets/src/mage/cards/i/InspiredIdea.java | 39 +++++++++++++++++++ .../src/mage/sets/InnistradCrimsonVow.java | 1 + 2 files changed, 40 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/i/InspiredIdea.java diff --git a/Mage.Sets/src/mage/cards/i/InspiredIdea.java b/Mage.Sets/src/mage/cards/i/InspiredIdea.java new file mode 100644 index 0000000000..a28271eac7 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/InspiredIdea.java @@ -0,0 +1,39 @@ +package mage.cards.i; + +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.continuous.MaximumHandSizeControllerEffect; +import mage.abilities.keyword.CleaveAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class InspiredIdea extends CardImpl { + + public InspiredIdea(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}"); + + // Cleave {3}{U}{U} + this.addAbility(new CleaveAbility(this, new DrawCardSourceControllerEffect(3), "{3}{U}{U}")); + + // Draw three cards. [Your maximum hand size is reduced by three for the rest of the game.] + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(3)); + this.getSpellAbility().addEffect(new MaximumHandSizeControllerEffect( + 3, Duration.EndOfGame, MaximumHandSizeControllerEffect.HandSizeModification.REDUCE + ).setText("[Your maximum hand size is reduced by three for the rest of the game.]")); + } + + private InspiredIdea(final InspiredIdea card) { + super(card); + } + + @Override + public InspiredIdea copy() { + return new InspiredIdea(this); + } +} diff --git a/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java b/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java index df56a7fc61..ef5fe0b83b 100644 --- a/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java +++ b/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java @@ -72,6 +72,7 @@ public final class InnistradCrimsonVow extends ExpansionSet { cards.add(new SetCardInfo("Hallowed Haunting", 17, Rarity.MYTHIC, mage.cards.h.HallowedHaunting.class)); cards.add(new SetCardInfo("Hero's Downfall", 120, Rarity.UNCOMMON, mage.cards.h.HerosDownfall.class)); cards.add(new SetCardInfo("Honored Heirloom", 257, Rarity.COMMON, mage.cards.h.HonoredHeirloom.class)); + cards.add(new SetCardInfo("Inspired Idea", 64, Rarity.RARE, mage.cards.i.InspiredIdea.class)); cards.add(new SetCardInfo("Investigator's Journal", 258, Rarity.RARE, mage.cards.i.InvestigatorsJournal.class)); cards.add(new SetCardInfo("Island", 270, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Kessig Wolfrider", 165, Rarity.RARE, mage.cards.k.KessigWolfrider.class));