mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Implement Memory Drain
This commit is contained in:
parent
f954d1ad93
commit
b538baef6f
1 changed files with 34 additions and 0 deletions
34
Mage.Sets/src/mage/cards/m/MemoryDrain.java
Normal file
34
Mage.Sets/src/mage/cards/m/MemoryDrain.java
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue