Menu

Submission for Ulamog, the Ceaseless Hunger

15

Comment

almost good enough maybe. The double target ability I had to make two. So its fine for standard and modern but stifle is a problem in legacy.

Config

name=Ulamog, the Ceaseless Hunger
image=http://magiccards.info/scans/en/bfz/15.jpg
image_updated=2015-11-08
value=2.500
rarity=M
type=Legendary,Creature
subtype=Eldrazi
cost={10}
pt=10/10
ability=When you cast SN, exile target permanent.;\
When you cast SN, exile target permanent.;\
Indestructible.
timing=main
requires_groovy_code
oracle=When you cast Ulamog, the Ceaseless Hunger, exile two target permanents.\nIndestructible\nWhenever Ulamog attacks, defending player exiles the top twenty cards of his or her library.

Script

[
    new ThisAttacksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent attacker) {
            return new MagicEvent(
                permanent,
                game.getDefendingPlayer(),
                this,
                "PN exiles the top 20 cards of PN's library."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            for (final MagicCard card : event.getPlayer().getLibrary().getCardsFromTop(20)) {
                game.doAction(new ShiftCardAction(card,
                MagicLocationType.OwnersLibrary, MagicLocationType.Exile));
            }
        }
    }
]
Pushed