Implement Memory Drain

This commit is contained in:
jmharmon 2019-12-13 20:33:23 -08:00 committed by GitHub
parent f954d1ad93
commit b538baef6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}