Menu

Submission for Living Tsunami

52

Config

name=Living Tsunami
image=http://mtgimage.com/card/living%20tsunami.jpg
value=2.500
rarity=U
type=Creature
subtype=Elemental
cost={2}{U}{U}
pt=4/4
ability=Flying
timing=main
requires_groovy_code
oracle=Flying. At the beginning of your upkeep, sacrifice Living Tsunami unless you return a land you control to its owner's hand.

Script

[
    new MagicAtYourUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
            return new MagicEvent(
                permanent,
                new MagicMayChoice("Return land you control to its owner's hand?"),
                this,
                "PN may\$ return a land PN controls to its owner's hand. If PN doesn't, sacrifice SN."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final MagicEvent cost = new MagicBounceChosenPermanentEvent(event.getSource(), event.getPlayer(), new MagicTargetChoice("a land you control"));      
            if (event.isYes() && cost.isSatisfied()) {
                game.addEvent(cost);
            } else {
                game.doAction(new MagicSacrificeAction(event.getPermanent()));
            }
        }
    }
]
Pushed