Menu

Submission for Leeching Sliver

102

Config

name=Leeching Sliver
image=http://mtgimage.com/card/leeching%20sliver.jpg
value=2.500
rarity=U
type=Creature
subtype=Sliver
cost={1}{B}
pt=1/1
requires_groovy_code
timing=main
oracle=Whenever a Sliver you control attacks, defending player loses 1 life.

Script

[
    new MagicWhenAttacksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPermanent creature) {
            return (permanent.isFriend(creature) && creature.hasSubType(MagicSubType.Sliver))?
                new MagicEvent(
                    permanent,
                    permanent.getOpponent(),
                    this,
                    "PN loses 1 life."
                ) :
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
			game.doAction(new MagicChangeLifeAction(event.getPlayer(), -1));
        }
    }
]
Pushed