From b538baef6f118326a5367c0f2d28010ecff4dce4 Mon Sep 17 00:00:00 2001 From: jmharmon <37360760+jmharmon@users.noreply.github.com> Date: Fri, 13 Dec 2019 20:33:23 -0800 Subject: [PATCH] Implement Memory Drain --- Mage.Sets/src/mage/cards/m/MemoryDrain.java | 34 +++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/MemoryDrain.java diff --git a/Mage.Sets/src/mage/cards/m/MemoryDrain.java b/Mage.Sets/src/mage/cards/m/MemoryDrain.java new file mode 100644 index 0000000000..661efa3b61 --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MemoryDrain.java @@ -0,0 +1,34 @@ +package mage.cards.m; + +import mage.abilities.effects.keyword.ScryEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.TargetSpell; + +import java.util.UUID; + +/** + * @author jmharmon + */ + +public final class MemoryDrain extends CardImpl { + + public MemoryDrain(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}{U}"); + + // Counter target spell. Scry 2. + this.getSpellAbility().addEffect(new CounterSourceEffect()); + this.getSpellAbility().addTarget(new TargetSpell()); + this.getSpellAbility().addEffect(new ScryEffect(2)); + } + + public MemoryDrain(final MemoryDrain card) { + super(card); + } + + @Override + public MemoryDrain copy() { + return new MemoryDrain(this); + } +}