Menu

Submission for

Config

name=Minion of Tevesh Szat
image=http://mtgimage.com/card/minion%20of%20tevesh%20szat.jpg
value=2.500
rarity=R
type=Creature
subtype=Demon,Minion
cost={4}{B}{B}{B}
pt=4/4
ability={T}: Target creature gets +3/-2 until end of turn.
timing=main
requires_groovy_code
oracle=At the beginning of your upkeep, Minion of Tevesh Szat deals 2 damage to you unless you pay {B}{B}. {T}: Target creature gets +3/-2 until end of turn.

Script

[
    new MagicAtUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
            return permanent.isController(upkeepPlayer) ?
                new MagicEvent(
                    permanent,
                    new MagicMayChoice(
                        "Pay {B}{B}?",
                        new MagicPayManaCostChoice(MagicManaCost.create("{B}{B}"))
                    ),
                    this,
                    "PN may\$ pay {B}{B}\$. If PN doesn't, SN deals 2 damage to PN."
                ):
                MagicEvent.NONE;
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isNo()) {
                final MagicDamage damage = new MagicDamage(event.getSource(),event.getPlayer(),2)
                game.doAction(new MagicDealDamageAction(damage));
            }
        }
    }
]
Pushed