mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Implemented Thought Erasure
This commit is contained in:
parent
e9045fb68e
commit
9b1d5e2a57
2 changed files with 44 additions and 0 deletions
43
Mage.Sets/src/mage/cards/t/ThoughtErasure.java
Normal file
43
Mage.Sets/src/mage/cards/t/ThoughtErasure.java
Normal 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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue