Menu

Submission for

Config

name=Hasran Ogress
image=http://mtgimage.com/card/hasran%20ogress.jpg
value=2.500
rarity=C
type=Creature
subtype=Ogre
cost={B}{B}
pt=3/2
timing=main
requires_groovy_code
oracle=Whenever Hasran Ogress attacks, it deals 3 damage to you unless you pay {2}.

Script

[
    new MagicWhenAttacksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
            return (permanent==creature) ?
                new MagicEvent(
                    permanent,
                    new MagicMayChoice(
                        new MagicPayManaCostChoice(MagicManaCost.create("{2}")),
                    ),
                    this,
                    "You may pay\$ {2}\$. If you don't, SN         deals 3 damage to you\$."
                ):
                MagicEvent.NONE;
        }

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