From 8f481b5d47b267f352b8e44824eb3d551b1c4fcf Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 10 Sep 2021 20:29:32 -0400 Subject: [PATCH] [MID] Implemented Flip the Switch --- Mage.Sets/src/mage/cards/f/FlipTheSwitch.java | 36 +++++++++++++++++++ .../src/mage/sets/InnistradMidnightHunt.java | 1 + 2 files changed, 37 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/f/FlipTheSwitch.java diff --git a/Mage.Sets/src/mage/cards/f/FlipTheSwitch.java b/Mage.Sets/src/mage/cards/f/FlipTheSwitch.java new file mode 100644 index 00000000000..0a3ad76493a --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FlipTheSwitch.java @@ -0,0 +1,36 @@ +package mage.cards.f; + +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.CounterUnlessPaysEffect; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.ZombieDecayedToken; +import mage.target.TargetSpell; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class FlipTheSwitch extends CardImpl { + + public FlipTheSwitch(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}"); + + // Counter target spell unless its controller pays {4}. Create a 2/2 black Zombie creature token with decayed. + this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(4))); + this.getSpellAbility().addEffect(new CreateTokenEffect(new ZombieDecayedToken())); + this.getSpellAbility().addTarget(new TargetSpell()); + } + + private FlipTheSwitch(final FlipTheSwitch card) { + super(card); + } + + @Override + public FlipTheSwitch copy() { + return new FlipTheSwitch(this); + } +} diff --git a/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java b/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java index 892a748d5b3..c92b884d559 100644 --- a/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java +++ b/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java @@ -109,6 +109,7 @@ public final class InnistradMidnightHunt extends ExpansionSet { cards.add(new SetCardInfo("Flame Channeler", 141, Rarity.UNCOMMON, mage.cards.f.FlameChanneler.class)); cards.add(new SetCardInfo("Flare of Faith", 19, Rarity.COMMON, mage.cards.f.FlareOfFaith.class)); cards.add(new SetCardInfo("Fleshtaker", 222, Rarity.UNCOMMON, mage.cards.f.Fleshtaker.class)); + cards.add(new SetCardInfo("Flip the Switch", 54, Rarity.COMMON, mage.cards.f.FlipTheSwitch.class)); cards.add(new SetCardInfo("Forest", 276, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Foul Play", 101, Rarity.UNCOMMON, mage.cards.f.FoulPlay.class)); cards.add(new SetCardInfo("Galvanic Iteration", 224, Rarity.RARE, mage.cards.g.GalvanicIteration.class));