add incomplete 'Ulamog, the Ceaseless Hunger'

master
muppet 2016-06-10 21:02:35 +08:00 committed by melvinzhang
parent c718888764
commit 03d2d86896
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,20 @@
[
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));
}
}
}
]

View File

@ -0,0 +1,15 @@
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.