Add script for Traumatize

master
ember hauler 2013-10-17 08:21:51 +00:00
parent 4d30537248
commit f6ce131203
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,23 @@
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.TARGET_PLAYER,
this,
"Target player\$ puts the top half of his or her library, rounded down, into " +
"his or her graveyard."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPlayer(game,new MagicPlayerAction() {
public void doAction(final MagicPlayer target) {
def amount = target.getLibrary().size().intdiv(2);
game.doAction(new MagicMillLibraryAction(target,amount));
}
});
}
}
]

View File

@ -0,0 +1,9 @@
name=Traumatize
url=http://magiccards.info/m14/en/77.html
image=http://magiccards.info/scans/en/m14/77.jpg
value=2.500
rarity=R
type=Sorcery
cost={3}{U}{U}
timing=main
requires_groovy_code