Menu

Submission for Master of Waves

53

Config

name=Master of Waves
url=http://magiccards.info/ths/en/53.html
image=http://magiccards.info/scans/en/ths/53.jpg
value=3.543
rarity=M
type=Creature
subtype=Merfolk,Wizard
cost={3}{U}
pt=2/1
ability=protection from red;lord elemental creatures you control get +1/+1
timing=main
requires_groovy_code

Script

[
	new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                this,
                "PN puts a 1/0 blue Elemental creature token onto the battlefield for each blue mana symbol in the mana costs of permanents he or she controls."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final int amount = event.getPlayer().getDevotion(MagicColor.Blue);
            game.doAction(new MagicPlayTokensAction(
                event.getPlayer(),
                TokenCardDefinitions.get("1/0 blue Elemental creature token"),
                amount
            ));
        }
    }
]
Pushed