From 52a980a4c6a2eb54504198c144c53a229adf6051 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 20 Apr 2022 08:50:50 -0400 Subject: [PATCH] [NCC] Implemented Writ of Return --- Mage.Sets/src/mage/cards/w/WritOfReturn.java | 37 +++++++++++++++++++ .../src/mage/sets/NewCapennaCommander.java | 1 + 2 files changed, 38 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/w/WritOfReturn.java diff --git a/Mage.Sets/src/mage/cards/w/WritOfReturn.java b/Mage.Sets/src/mage/cards/w/WritOfReturn.java new file mode 100644 index 0000000000..ad96db9885 --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WritOfReturn.java @@ -0,0 +1,37 @@ +package mage.cards.w; + +import mage.abilities.effects.common.CipherEffect; +import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.target.common.TargetCardInYourGraveyard; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class WritOfReturn extends CardImpl { + + public WritOfReturn(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{B}{B}"); + + // Return target creature card from your graveyard to the battlefield tapped. + this.getSpellAbility().addEffect(new ReturnFromGraveyardToBattlefieldTargetEffect(true)); + this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD)); + + // Cipher + this.getSpellAbility().addEffect(new CipherEffect()); + } + + private WritOfReturn(final WritOfReturn card) { + super(card); + } + + @Override + public WritOfReturn copy() { + return new WritOfReturn(this); + } +} diff --git a/Mage.Sets/src/mage/sets/NewCapennaCommander.java b/Mage.Sets/src/mage/sets/NewCapennaCommander.java index bb0d81b977..e3a1592851 100644 --- a/Mage.Sets/src/mage/sets/NewCapennaCommander.java +++ b/Mage.Sets/src/mage/sets/NewCapennaCommander.java @@ -293,6 +293,7 @@ public final class NewCapennaCommander extends ExpansionSet { cards.add(new SetCardInfo("Woodfall Primus", 322, Rarity.RARE, mage.cards.w.WoodfallPrimus.class)); cards.add(new SetCardInfo("World Shaper", 323, Rarity.RARE, mage.cards.w.WorldShaper.class)); cards.add(new SetCardInfo("Wrexial, the Risen Deep", 359, Rarity.MYTHIC, mage.cards.w.WrexialTheRisenDeep.class)); + cards.add(new SetCardInfo("Writ of Return", 42, Rarity.RARE, mage.cards.w.WritOfReturn.class)); cards.add(new SetCardInfo("Zndrsplt's Judgment", 240, Rarity.RARE, mage.cards.z.ZndrspltsJudgment.class)); cards.add(new SetCardInfo("Zurzoth, Chaos Rider", 278, Rarity.RARE, mage.cards.z.ZurzothChaosRider.class));