Implemented Sphinx of Enlightenment

This commit is contained in:
Evan Kranzler 2019-10-12 10:40:52 -04:00
parent 5f1fa5608e
commit 811ab5d69a
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,47 @@
package mage.cards.s;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.DrawCardTargetEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.target.common.TargetOpponent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class SphinxOfEnlightenment extends CardImpl {
public SphinxOfEnlightenment(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{U}{U}");
this.subtype.add(SubType.SPHINX);
this.power = new MageInt(5);
this.toughness = new MageInt(5);
// Flying
this.addAbility(FlyingAbility.getInstance());
// When Sphinx of Enlightenment enters the battlefield, target opponent draws a card and you draw three cards.
Ability ability = new EntersBattlefieldTriggeredAbility(new DrawCardTargetEffect(1));
ability.addEffect(new DrawCardSourceControllerEffect(3).concatBy("and you"));
ability.addTarget(new TargetOpponent());
this.addAbility(ability);
}
private SphinxOfEnlightenment(final SphinxOfEnlightenment card) {
super(card);
}
@Override
public SphinxOfEnlightenment copy() {
return new SphinxOfEnlightenment(this);
}
}

View file

@ -1,6 +1,7 @@
package mage.sets;
import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
/**
@ -17,5 +18,7 @@ public final class GameNight2019 extends ExpansionSet {
private GameNight2019() {
super("Game Night 2019", "GN2", ExpansionSet.buildDate(2019, 11, 15), SetType.SUPPLEMENTAL);
this.hasBasicLands = false; // TODO: change when spoiled
cards.add(new SetCardInfo("Sphinx of Enlightenment", 2, Rarity.MYTHIC, mage.cards.s.SphinxOfEnlightenment.class));
}
}