Add script for Traumatize
parent
4d30537248
commit
f6ce131203
|
@ -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));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
|
@ -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
|
Loading…
Reference in New Issue