Implemented Thought Erasure

This commit is contained in:
Evan Kranzler 2018-09-02 23:07:19 -04:00
parent e9045fb68e
commit 9b1d5e2a57
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,43 @@
package mage.cards.t;
import java.util.UUID;
import mage.abilities.effects.common.discard.DiscardCardYouChooseTargetEffect;
import mage.abilities.effects.keyword.SurveilEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.TargetController;
import mage.filter.FilterCard;
import mage.filter.common.FilterNonlandCard;
import mage.target.common.TargetOpponent;
/**
*
* @author TheElk801
*/
public final class ThoughtErasure extends CardImpl {
private static final FilterCard filter = new FilterNonlandCard();
public ThoughtErasure(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{U}{B}");
// Target opponent reveals their hand. You choose a nonland card from it. That player discards that card.
this.getSpellAbility().addEffect(new DiscardCardYouChooseTargetEffect(
filter, TargetController.ANY
));
this.getSpellAbility().addTarget(new TargetOpponent());
// Surveil 1.
this.getSpellAbility().addEffect(new SurveilEffect(1));
}
public ThoughtErasure(final ThoughtErasure card) {
super(card);
}
@Override
public ThoughtErasure copy() {
return new ThoughtErasure(this);
}
}

View file

@ -31,6 +31,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
cards.add(new SetCardInfo("Sinister Sabotage", 54, Rarity.UNCOMMON, mage.cards.s.SinisterSabotage.class));
cards.add(new SetCardInfo("Steam Vents", 257, Rarity.RARE, mage.cards.s.SteamVents.class));
cards.add(new SetCardInfo("Temple Garden", 258, Rarity.RARE, mage.cards.t.TempleGarden.class));
cards.add(new SetCardInfo("Thought Erasure", 206, Rarity.UNCOMMON, mage.cards.t.ThoughtErasure.class));
cards.add(new SetCardInfo("Watery Grave", 259, Rarity.RARE, mage.cards.w.WateryGrave.class));
}
}