Menu

Submission for Silumgar, the Drifting Death

194

Config

name=Silumgar, the Drifting Death
image=http://mtgimage.com/card/silumgar%2C%20the%20drifting%20death.jpg
value=2.500
rarity=R
type=Legendary,Creature
subtype=Dragon
cost={4}{U}{B}
pt=3/7
ability=Flying; hexproof
timing=main
requires_groovy_code
oracle=Flying, hexproof. Whenever a Dragon you control attacks, creatures defending player controls get -1/-1 until end of turn.

Script

[
    new MagicWhenAttacksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
            return (permanent.isFriend(creature) &&
                    permanent.hasSubType(MagicSubType.Dragon)) ?
                new MagicEvent(
                    permanent,
                    this,
                    "Creatures defending player controls get -1/-1 until end of turn."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final Collection<MagicPermanent> creatures=
                game.filterPermanents(event.getPlayer().getOpponent(),MagicTargetFilterFactory.CREATURE_YOU_CONTROL);
            for (final MagicPermanent creature : creatures) {
                game.doAction(new MagicChangeTurnPTAction(creature, -1, -1));
            }
        }
    }
]
Pushed