Menu

Submission for Landbind Ritual

24

Config

name=Landbind Ritual
image=http://mtgimage.com/card/landbind%20ritual.jpg
value=2.500
rarity=U
type=Sorcery
cost={3}{W}{W}
timing=main
requires_groovy_code
oracle=You gain 2 life for each Plains you control.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                this,
                "PN gains 2 life for each plains PN controls."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final MagicPlayer player = event.getPlayer();
            final int amount = player.getNrOfPermanents(MagicSubType.Plains) * 2;
            game.doAction(new MagicChangeLifeAction(player,amount));
        }
    }
]
Pushed