Menu

Submission for Phyrexian Tyranny

118

Config

name=Phyrexian Tyranny
image=http://mtgimage.com/card/phyrexian%20tyranny.jpg
value=2.500
rarity=R
type=Enchantment
cost={U}{B}{R}
timing=enchantment
requires_groovy_code
oracle=Whenever a player draws a card, that player loses 2 life unless he or she pays {2}.

Script

[
    new MagicWhenOtherDrawnTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCard card) {
            return new MagicEvent(
                permanent,
                card.getController(),
                new MagicMayChoice(
                    "Pay {2}?",
                    new MagicPayManaCostChoice(MagicManaCost.create("{2}"))
                ),
                this,
                "PN may\$ pay {2}\$. If you don't, lose 2 life"
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isNo()) {
                game.doAction(new MagicChangeLifeAction(event.getPlayer(),-2));
            }
        }
    }
]
Pushed