Menu

Submission for

Comment

Alpha tested, might need Beta test.

Config

name=Graveborn Muse
image=http://magiccards.info/scans/en/10e/145.jpg
value=4.157
rarity=R
type=Creature
subtype=Zombie,Spirit
cost={2}{B}{B}
pt=3/3
timing=main
oracle=At the beginning of your upkeep, you draw X cards and you lose X life, where X is the number of Zombies you control.
requires_groovy_code

Script

[
    new MagicAtUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(
                final MagicGame game,
                final MagicPermanent permanent,
                final MagicPlayer upkeepPlayer) {
            return permanent.isController(upkeepPlayer) ?
                new MagicEvent(
                    permanent,
                    this,
                    "PN draw X cards and PN lose X life, where X is the number of Zombies PN control."
                ):
                MagicEvent.NONE;
        }
		
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final MagicPlayer player = event.getPlayer();
			final int amount = player.getNrOfPermanents(MagicSubType.Zombie);
            game.doAction(new MagicDrawAction(player,amount));
            game.doAction(new MagicChangeLifeAction(player,-amount));
        }
    }
]
Pushed