[MH3] Implement Twisted Riddlekeeper

This commit is contained in:
theelk801 2024-05-28 19:29:26 -04:00
parent 4aca4597d5
commit e47b674980
3 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,54 @@
package mage.cards.t;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.effects.common.CastSourceTriggeredAbility;
import mage.abilities.effects.common.TapTargetEffect;
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
import mage.abilities.keyword.EmergeAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.counters.CounterType;
import mage.filter.StaticFilters;
import mage.target.TargetPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class TwistedRiddlekeeper extends CardImpl {
public TwistedRiddlekeeper(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{8}");
this.subtype.add(SubType.ELDRAZI);
this.subtype.add(SubType.SPHINX);
this.power = new MageInt(5);
this.toughness = new MageInt(5);
// Emerge {5}{C}{U}
this.addAbility(new EmergeAbility(this, "{5}{C}{U}"));
// When you cast this spell, tap up to two target permanents. Put a stun counter on each of them.
Ability ability = new CastSourceTriggeredAbility(new TapTargetEffect());
ability.addEffect(new AddCountersTargetEffect(CounterType.STUN.createInstance()).setText("and put a stun counter on each of them"));
ability.addTarget(new TargetPermanent(0, 2, StaticFilters.FILTER_PERMANENTS));
this.addAbility(ability);
// Flying
this.addAbility(FlyingAbility.getInstance());
}
private TwistedRiddlekeeper(final TwistedRiddlekeeper card) {
super(card);
}
@Override
public TwistedRiddlekeeper copy() {
return new TwistedRiddlekeeper(this);
}
}

View file

@ -182,6 +182,7 @@ public final class ModernHorizons3 extends ExpansionSet {
cards.add(new SetCardInfo("Triton Wavebreaker", 74, Rarity.UNCOMMON, mage.cards.t.TritonWavebreaker.class));
cards.add(new SetCardInfo("Tune the Narrative", 75, Rarity.COMMON, mage.cards.t.TuneTheNarrative.class));
cards.add(new SetCardInfo("Twisted Landscape", 232, Rarity.COMMON, mage.cards.t.TwistedLandscape.class));
cards.add(new SetCardInfo("Twisted Riddlekeeper", 14, Rarity.UNCOMMON, mage.cards.t.TwistedRiddlekeeper.class));
cards.add(new SetCardInfo("Ugin's Binding", 76, Rarity.MYTHIC, mage.cards.u.UginsBinding.class));
cards.add(new SetCardInfo("Ugin's Labyrinth", 233, Rarity.MYTHIC, mage.cards.u.UginsLabyrinth.class));
cards.add(new SetCardInfo("Ulamog, the Defiler", 15, Rarity.MYTHIC, mage.cards.u.UlamogTheDefiler.class));

View file

@ -37,6 +37,7 @@ Double Strike|instance|
Dredge|number|
Echo|manaString|
Embalm|cost, card|
Emerge|card, manaString|
Enchant|type|
Encore|cost|
Enlist|new|