mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Implemented Sphinx's Insight
This commit is contained in:
parent
0d949ca7e6
commit
d9ca4f2ff6
3 changed files with 42 additions and 0 deletions
40
Mage.Sets/src/mage/cards/s/SphinxsInsight.java
Normal file
40
Mage.Sets/src/mage/cards/s/SphinxsInsight.java
Normal file
|
@ -0,0 +1,40 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.abilities.condition.common.MyMainPhaseCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SphinxsInsight extends CardImpl {
|
||||
|
||||
public SphinxsInsight(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{W}{U}");
|
||||
|
||||
|
||||
// Draw two cards.
|
||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(2));
|
||||
|
||||
// Addendum — If you cast this spell during your main phase, you gain 2 life.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new GainLifeEffect(2), MyMainPhaseCondition.instance,
|
||||
"<br><i>Addendum</i> — If you cast this spell during your main phase, you gain 2 life."
|
||||
));
|
||||
}
|
||||
|
||||
private SphinxsInsight(final SphinxsInsight card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SphinxsInsight copy() {
|
||||
return new SphinxsInsight(this);
|
||||
}
|
||||
}
|
|
@ -45,6 +45,7 @@ public final class RavnicaAllegiance extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Rafter Demon", 196, Rarity.COMMON, mage.cards.r.RafterDemon.class));
|
||||
cards.add(new SetCardInfo("Rakdos Firewheeler", 197, Rarity.UNCOMMON, mage.cards.r.RakdosFirewheeler.class));
|
||||
cards.add(new SetCardInfo("Rix Maadi Reveler", 109, Rarity.RARE, mage.cards.r.RixMaadiReveler.class));
|
||||
cards.add(new SetCardInfo("Sphinx's Insight", 209, Rarity.COMMON, mage.cards.s.SphinxsInsight.class));
|
||||
cards.add(new SetCardInfo("The Haunt of Hightower", 273, Rarity.MYTHIC, mage.cards.t.TheHauntOfHightower.class));
|
||||
cards.add(new SetCardInfo("Tithe Taker", 27, Rarity.RARE, mage.cards.t.TitheTaker.class));
|
||||
cards.add(new SetCardInfo("Zegana, Utopian Speaker", 214, Rarity.RARE, mage.cards.z.ZeganaUtopianSpeaker.class));
|
||||
|
|
|
@ -7,6 +7,7 @@ package mage.constants;
|
|||
*/
|
||||
public enum AbilityWord {
|
||||
|
||||
ADDENDUM("Addendum"),
|
||||
BATTALION("Battalion"),
|
||||
BLOODRUSH("Bloodrush"),
|
||||
CHANNEL("Channel"),
|
||||
|
|
Loading…
Reference in a new issue