Menu

Submission for Dragonlord Silumgar

220

Config

name=Dragonlord Silumgar
image=http://magiccards.info/scans/en/dtk/220.jpg
value=2.500
rarity=M
type=Legendary,Creature
subtype=Elder,Dragon
cost={4}{U}{B}
pt=3/5
ability=Flying; deathtouch
timing=main
requires_groovy_code
oracle=Flying, deathtouch\nWhen Dragonlord Silumgar enters the battlefield, gain control of target creature or planeswalker for as long as you control Dragonlord Silumgar.

Script

def CREATURE_OR_PLANESWALKER = new MagicPermanentFilterImpl() {
    public boolean accept(final MagicSource source,final MagicPlayer player,final MagicPermanent target) {
        return target.isCreature() || target.isPlaneswalker();
    } 
};

def TARGET_CREATURE_OR_PLANESWALKER = new MagicTargetChoice(
    CREATURE_OR_PLANESWALKER,
    "target creature or planeswalker"
);
[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                TARGET_CREATURE_OR_PLANESWALKER,
                MagicExileTargetPicker.create(),
                this,
                "Gain control of target creature or planeswalker\$ for as long as PN controls SN."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(new AddStaticAction(
                    event.getPermanent(), 
                    MagicStatic.ControlAsLongAsYouControlSource(
                        event.getPlayer(),
                        it
                    )
                ));
            });
        }
    }
]
Pushed