diff --git a/Mage.Sets/src/mage/cards/t/ThassasIntervention.java b/Mage.Sets/src/mage/cards/t/ThassasIntervention.java new file mode 100644 index 0000000000..659b03fb77 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/ThassasIntervention.java @@ -0,0 +1,56 @@ +package mage.cards.t; + +import mage.abilities.Mode; +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.MultipliedValue; +import mage.abilities.dynamicvalue.common.ManacostVariableValue; +import mage.abilities.dynamicvalue.common.StaticValue; +import mage.abilities.effects.common.CounterUnlessPaysEffect; +import mage.abilities.effects.common.LookLibraryAndPickControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Zone; +import mage.filter.StaticFilters; +import mage.target.TargetSpell; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ThassasIntervention extends CardImpl { + + private static final DynamicValue xValue = new MultipliedValue(ManacostVariableValue.instance, 2); + + public ThassasIntervention(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{X}{U}{U}"); + + // Choose one- + // • Look at the top X cards of your library. Put up to two of them into your hand and the rest on the bottom of your library in a random order. + this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect( + ManacostVariableValue.instance, false, StaticValue.get(2), + StaticFilters.FILTER_CARD, Zone.LIBRARY, false, false, + true, Zone.HAND, true, false, false + ).setBackInRandomOrder(true).setText( + "Look at the top X cards of your library. Put up to two of them into your hand " + + "and the rest on the bottom of your library in a random order." + ) + ); + + // • Counter target spell unless its controller pays twice {X}. + Mode mode = new Mode(new CounterUnlessPaysEffect(xValue) + .setText("Counter target spell unless its controller pays twice {X}.")); + mode.addTarget(new TargetSpell()); + this.getSpellAbility().addMode(mode); + } + + private ThassasIntervention(final ThassasIntervention card) { + super(card); + } + + @Override + public ThassasIntervention copy() { + return new ThassasIntervention(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index f6bd1edb4d..369dbbd527 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -159,6 +159,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Temple of Malice", 247, Rarity.RARE, mage.cards.t.TempleOfMalice.class)); cards.add(new SetCardInfo("Temple of Plenty", 248, Rarity.RARE, mage.cards.t.TempleOfPlenty.class)); cards.add(new SetCardInfo("Terror of Mount Velus", 295, Rarity.RARE, mage.cards.t.TerrorOfMountVelus.class)); + cards.add(new SetCardInfo("Thassa's Intervention", 72, Rarity.RARE, mage.cards.t.ThassasIntervention.class)); cards.add(new SetCardInfo("Thassa's Oracle", 73, Rarity.RARE, mage.cards.t.ThassasOracle.class)); cards.add(new SetCardInfo("Thassa, Deep-Dwelling", 71, Rarity.MYTHIC, mage.cards.t.ThassaDeepDwelling.class)); cards.add(new SetCardInfo("The Akroan War", 124, Rarity.RARE, mage.cards.t.TheAkroanWar.class));