diff --git a/release/Magarena/scripts/Traumatize.groovy b/release/Magarena/scripts/Traumatize.groovy new file mode 100644 index 0000000000..5f5f6b8660 --- /dev/null +++ b/release/Magarena/scripts/Traumatize.groovy @@ -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)); + } + }); + } + } +] diff --git a/release/Magarena/scripts/Traumatize.txt b/release/Magarena/scripts/Traumatize.txt new file mode 100644 index 0000000000..e6de09aceb --- /dev/null +++ b/release/Magarena/scripts/Traumatize.txt @@ -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