Menu

Submission for Tectonic Break

216

Comment

Based on Death Cloud

Config

name=Tectonic Break
image=http://mtgimage.com/card/tectonic%20break.jpg
value=2.500
rarity=R
type=Sorcery
cost={X}{R}{R}
timing=main
requires_groovy_code
oracle=Each player sacrifices X lands.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                this,
                "Each player sacrifices X lands."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final int amount = event.getCardOnStack().getX();
              for (final MagicPlayer player : game.getAPNAP()) {
                for (final int count = 1; count <= amount; count++) {
                    game.addEvent(new MagicSacrificePermanentEvent(event.getSource(),player,MagicTargetChoice.SACRIFICE_LAND));
                }
            }
        }
    }
]

Pushed