Menu

Submission for Heartwood Storyteller

127

Config

name=Heartwood Storyteller
image=http://mtgimage.com/card/heartwood%20storyteller.jpg
value=2.500
rarity=R
type=Creature
subtype=Treefolk
cost={1}{G}{G}
pt=2/3
timing=main
requires_groovy_code
oracle=Whenever a player casts a noncreature spell, each of that player's opponents may draw a card.

Script

[
    new MagicWhenOtherSpellIsCastTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack cardOnStack) {
            return (!cardOnStack.hasType(MagicType.Creature)) ?
                new MagicEvent(
                    permanent,
                    cardOnStack.getOpponent(),
                    new MagicSimpleMayChoice(
                        MagicSimpleMayChoice.DRAW_CARDS,
                        1,
                        MagicSimpleMayChoice.DEFAULT_NONE
                    ),
                    this,
                    "PN may\$ draw a card."
                ) :
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                game.doAction(new MagicDrawAction(event.getPlayer()));
            }
        }
    }
]
Pushed