From 103c7c4926737c828659086299c121f071460c6a Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 10 Jan 2020 19:51:37 -0500 Subject: [PATCH] Implemented Chain to Memory --- Mage.Sets/src/mage/cards/c/ChainToMemory.java | 34 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 35 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/ChainToMemory.java diff --git a/Mage.Sets/src/mage/cards/c/ChainToMemory.java b/Mage.Sets/src/mage/cards/c/ChainToMemory.java new file mode 100644 index 0000000000..51b9815132 --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/ChainToMemory.java @@ -0,0 +1,34 @@ +package mage.cards.c; + +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.effects.keyword.ScryEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ChainToMemory extends CardImpl { + + public ChainToMemory(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}"); + + // Target creature gets -4/-0 until end of turn. Scry 2. + this.getSpellAbility().addEffect(new BoostTargetEffect(-2, 0)); + this.getSpellAbility().addEffect(new ScryEffect(2).setText("Scry 2")); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + } + + private ChainToMemory(final ChainToMemory card) { + super(card); + } + + @Override + public ChainToMemory copy() { + return new ChainToMemory(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index 30fa1636df..700bb146a4 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -48,6 +48,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Bronze Sword", 232, Rarity.COMMON, mage.cards.b.BronzeSword.class)); cards.add(new SetCardInfo("Callaphe, Beloved of the Sea", 45, Rarity.UNCOMMON, mage.cards.c.CallapheBelovedOfTheSea.class)); cards.add(new SetCardInfo("Careless Celebrant", 129, Rarity.UNCOMMON, mage.cards.c.CarelessCelebrant.class)); + cards.add(new SetCardInfo("Chain to Memory", 46, Rarity.COMMON, mage.cards.c.ChainToMemory.class)); cards.add(new SetCardInfo("Chainweb Aracnir", 167, Rarity.UNCOMMON, mage.cards.c.ChainwebAracnir.class)); cards.add(new SetCardInfo("Cling to Dust", 87, Rarity.UNCOMMON, mage.cards.c.ClingToDust.class)); cards.add(new SetCardInfo("Commanding Presence", 7, Rarity.UNCOMMON, mage.cards.c.CommandingPresence.class));