Menu

Submission for

Comment

Got the upkeep event from Demonic Hordes and then somehow figured how to deal the damage on my own! Playtested and working!

Config

name=Force of Nature
image=http://mtgimage.com/card/force%20of%20nature.jpg
value=2.500
rarity=R
type=Creature
subtype=Elemental
cost={2}{G}{G}{G}{G}
pt=8/8
ability=Trample     
timing=main
requires_groovy_code
oracle=Trample. At the beginning of your upkeep, Force of Nature deals 8 damage to you unless you pay {G}{G}{G}{G}.

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 {G}{G}{G}{G}?",
                        new MagicPayManaCostChoice(MagicManaCost.create("{G}{G}{G}{G}"))
                    ),
                    this,
                    "PN may\$ pay {G}{G}{G}{G}\$. If PN doesn't, SN deals 8 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(),8)
                game.doAction(new MagicDealDamageAction(damage)  
                );
            }
        }
    }
]
Pushed