Menu

Submission for

Config

name=Fecundity
url=http://magiccards.info/8ed/en/247.html
image=http://magiccards.info/scans/en/8ed/247.jpg
value=4.433
rarity=U
type=Enchantment
cost={2}{G}
timing=enchantment

Script

[
    new MagicWhenOtherDiesTrigger() {
        @Override
        public MagicEvent executeTrigger(
                final MagicGame game,
                final MagicPermanent permanent,
                final MagicPermanent otherPermanent) {
            return (permanent != otherPermanent &&
                    otherPermanent.isCreature() 
                    ) ?
                new MagicEvent(
                    permanent,
                    otherPermanent.getController(),
                    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