From cbd1ceb2705418bac8691207aae561b70ac6cf93 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 4 Sep 2021 09:22:46 -0400 Subject: [PATCH] [MID] Implemented Faithful Mending --- .../src/mage/cards/f/FaithfulMending.java | 40 +++++++++++++++++++ .../src/mage/sets/InnistradMidnightHunt.java | 1 + Utils/mtg-cards-data.txt | 1 + 3 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/f/FaithfulMending.java diff --git a/Mage.Sets/src/mage/cards/f/FaithfulMending.java b/Mage.Sets/src/mage/cards/f/FaithfulMending.java new file mode 100644 index 0000000000..7025bd611c --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FaithfulMending.java @@ -0,0 +1,40 @@ +package mage.cards.f; + +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.effects.common.discard.DiscardControllerEffect; +import mage.abilities.keyword.FlashbackAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.TimingRule; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class FaithfulMending extends CardImpl { + + public FaithfulMending(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{W}{U}"); + + // You gain 2 life, draw two cards, then discard two cards. + this.getSpellAbility().addEffect(new GainLifeEffect(2)); + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(2).concatBy(",")); + this.getSpellAbility().addEffect(new DiscardControllerEffect(2).concatBy(", then")); + + // Flashback {1}{W}{U} + this.addAbility(new FlashbackAbility(new ManaCostsImpl<>("{1}{W}{U}"), TimingRule.INSTANT)); + } + + private FaithfulMending(final FaithfulMending card) { + super(card); + } + + @Override + public FaithfulMending copy() { + return new FaithfulMending(this); + } +} diff --git a/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java b/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java index af99cc4636..cd108e329a 100644 --- a/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java +++ b/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java @@ -40,6 +40,7 @@ public final class InnistradMidnightHunt extends ExpansionSet { cards.add(new SetCardInfo("Defenestrate", 95, Rarity.COMMON, mage.cards.d.Defenestrate.class)); cards.add(new SetCardInfo("Deserted Beach", 260, Rarity.RARE, mage.cards.d.DesertedBeach.class)); cards.add(new SetCardInfo("Dissipate", 49, Rarity.UNCOMMON, mage.cards.d.Dissipate.class)); + cards.add(new SetCardInfo("Faithful Mending", 221, Rarity.UNCOMMON, mage.cards.f.FaithfulMending.class)); cards.add(new SetCardInfo("Famished Foragers", 138, Rarity.COMMON, mage.cards.f.FamishedForagers.class)); cards.add(new SetCardInfo("Festival Crasher", 140, Rarity.COMMON, mage.cards.f.FestivalCrasher.class)); cards.add(new SetCardInfo("Forest", 276, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 20e2633361..e7a2457af3 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -42232,6 +42232,7 @@ Arlinn, the Moon's Fury|Innistrad: Midnight Hunt|211|M||Legendary Planeswalker - Bladestitched Skaab|Innistrad: Midnight Hunt|212|U|{U}{B}|Creature - Zombie Soldier|2|3|Other Zombies you control get +1/+0.| Devoted Grafkeeper|Innistrad: Midnight Hunt|218|U|{W}{U}|Creature - Human Pesant|2|1|When Devoted Grafkeeper enters the battlefield, mill two cards.$Whenever you cast a spell from your graveyard, tap target creature you don't control.$Disturb {1}{W}{U}| Departed Soulkeeper|Innistrad: Midnight Hunt|218|U||Creature - Spirit|3|1|Flying$Departed Soulkeeper can block only creatures with flying.$If Departed Soulkeeper would be put into a graveyard from anywhere, exile it instead.| +Faithful Mending|Innistrad: Midnight Hunt|221|U|{W}{U}|Instant|||You gain 2 life, draw two cards, then discard two cards.$Flashback {1}{W}{U}| Galvanic Iteration|Innistrad: Midnight Hunt|224|R|{U}{R}|Instant|||When you cast your next instant or sorcery spell this turn, copy that spell. You may choose new targets for the copy.$Flashback {1}{U}{R}| Join the Dance|Innistrad: Midnight Hunt|229|U|{G}{W}|Sorcery|||Create two 1/1 white Human creature tokens.$Flashback {3}{G}{W}| Kessig Naturalist|Innistrad: Midnight Hunt|231|U|{R}{G}|Creature - Human Werewolf|2|2|Whenever Kessig Naturalist attacks, add {R} or {G}. Until end of turn, you don't lose this mana as steps and phases end.$Daybound|