Menu

Submission for Merchant Ship

23

Config

name=Merchant Ship
image=http://mtgimage.com/card/merchant%20ship.jpg
value=2.500
rarity=U
type=Creature
subtype=Human
cost={U}
pt=0/2
ability=SN can't attack unless defending player controls an Island.
timing=main
requires_groovy_code=Merchant Ship;Sea Serpent
oracle=Merchant Ship can't attack unless defending player controls an Island. Whenever Merchant Ship attacks and isn't blocked, you gain 2 life. When you control no Islands, sacrifice Merchant Ship.

Script

[
    new MagicWhenAttacksUnblockedTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
            return (creature == permanent) ?
                new MagicEvent(
                    permanent,
                    this,
                    "PN gains 2 life."
                ) :
                MagicEvent.NONE;
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicChangeLifeAction(event.getPlayer(), 2));
        }
    }
]
Pushed