mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Implemented Thassa's Intervention
This commit is contained in:
parent
053cd5fd3f
commit
b6fca3ac7d
2 changed files with 57 additions and 0 deletions
56
Mage.Sets/src/mage/cards/t/ThassasIntervention.java
Normal file
56
Mage.Sets/src/mage/cards/t/ThassasIntervention.java
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue