Implement [M3C] Sphinx of the Revelation (#12378)

This commit is contained in:
grimreap124 2024-06-07 11:48:38 +10:00 committed by GitHub
parent 859339e933
commit 45c1bd9117
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,65 @@
package mage.cards.s;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.dynamicvalue.common.SavedGainedLifeValue;
import mage.constants.SubType;
import mage.counters.CounterType;
import mage.game.Game;
import mage.abilities.Ability;
import mage.abilities.common.GainLifeControllerTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.PayVariableEnergyCost;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.dynamicvalue.common.GetXValue;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.counter.GetEnergyCountersControllerEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.LifelinkAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
/**
*
* @author grimreap124
*/
public final class SphinxOfTheRevelation extends CardImpl {
public SphinxOfTheRevelation(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[] { CardType.ARTIFACT, CardType.CREATURE }, "{3}{W}{U}");
this.subtype.add(SubType.SPHINX);
this.power = new MageInt(4);
this.toughness = new MageInt(5);
// Flying
this.addAbility(FlyingAbility.getInstance());
// Lifelink
this.addAbility(LifelinkAbility.getInstance());
// Whenever you gain life, you get that many {E}.
this.addAbility(new GainLifeControllerTriggeredAbility(new GetEnergyCountersControllerEffect(SavedGainedLifeValue.MANY)));
// {W}{U}{U}, {T}, Pay X {E}: Draw X cards.
Ability ability = new SimpleActivatedAbility(new DrawCardSourceControllerEffect(GetXValue.instance),
new ManaCostsImpl<>("{W}{U}{U}"));
ability.addCost(new TapSourceCost());
ability.addCost(new PayVariableEnergyCost());
this.addAbility(ability);
}
private SphinxOfTheRevelation(final SphinxOfTheRevelation card) {
super(card);
}
@Override
public SphinxOfTheRevelation copy() {
return new SphinxOfTheRevelation(this);
}
}

View file

@ -246,6 +246,7 @@ public final class ModernHorizons3Commander extends ExpansionSet {
cards.add(new SetCardInfo("Solemn Simulacrum", 306, Rarity.RARE, mage.cards.s.SolemnSimulacrum.class));
cards.add(new SetCardInfo("Spawnbed Protector", 36, Rarity.RARE, mage.cards.s.SpawnbedProtector.class));
cards.add(new SetCardInfo("Spawning Bed", 380, Rarity.UNCOMMON, mage.cards.s.SpawningBed.class));
cards.add(new SetCardInfo("Sphinx of the Revelation", 75, Rarity.RARE, mage.cards.s.SphinxOfTheRevelation.class));
cards.add(new SetCardInfo("Stitcher's Supplier", 204, Rarity.UNCOMMON, mage.cards.s.StitchersSupplier.class));
cards.add(new SetCardInfo("Stone Idol Generator", 77, Rarity.RARE, mage.cards.s.StoneIdolGenerator.class));
cards.add(new SetCardInfo("Suffer the Past", 205, Rarity.UNCOMMON, mage.cards.s.SufferThePast.class));