forked from External/mage
[LCI] Implement Confounding Riddle
This commit is contained in:
parent
238d89d42c
commit
e73931815d
2 changed files with 42 additions and 0 deletions
41
Mage.Sets/src/mage/cards/c/ConfoundingRiddle.java
Normal file
41
Mage.Sets/src/mage/cards/c/ConfoundingRiddle.java
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
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.PutCards;
|
||||
import mage.target.TargetSpell;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ConfoundingRiddle extends CardImpl {
|
||||
|
||||
public ConfoundingRiddle(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}");
|
||||
|
||||
// Choose one --
|
||||
// * Look at the top four cards of your library. Put one of them into your hand and the rest into your graveyard.
|
||||
this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect(
|
||||
4, 1, PutCards.HAND, PutCards.GRAVEYARD
|
||||
));
|
||||
|
||||
// * Counter target spell unless its controller pays {4}.
|
||||
this.getSpellAbility().addMode(new Mode(new CounterUnlessPaysEffect(new GenericManaCost(4))).addTarget(new TargetSpell()));
|
||||
}
|
||||
|
||||
private ConfoundingRiddle(final ConfoundingRiddle card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConfoundingRiddle copy() {
|
||||
return new ConfoundingRiddle(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -27,6 +27,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Cavern of Souls", 269, Rarity.MYTHIC, mage.cards.c.CavernOfSouls.class));
|
||||
cards.add(new SetCardInfo("Cenote Scout", 178, Rarity.UNCOMMON, mage.cards.c.CenoteScout.class));
|
||||
cards.add(new SetCardInfo("Chart a Course", 48, Rarity.UNCOMMON, mage.cards.c.ChartACourse.class));
|
||||
cards.add(new SetCardInfo("Confounding Riddle", 50, Rarity.UNCOMMON, mage.cards.c.ConfoundingRiddle.class));
|
||||
cards.add(new SetCardInfo("Deeproot Pilgrimage", 52, Rarity.RARE, mage.cards.d.DeeprootPilgrimage.class));
|
||||
cards.add(new SetCardInfo("Didact Echo", 53, Rarity.COMMON, mage.cards.d.DidactEcho.class));
|
||||
cards.add(new SetCardInfo("Dinotomaton", 144, Rarity.COMMON, mage.cards.d.Dinotomaton.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue