magarena/release/Magarena/scripts/Nemesis_of_Reason.groovy

20 lines
716 B
Groovy
Raw Normal View History

2013-03-18 06:18:20 -07:00
[
new MagicWhenAttacksTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
return (permanent == creature) ?
new MagicEvent(
permanent,
2013-06-05 22:57:29 -07:00
game.getDefendingPlayer(),
2013-03-18 06:18:20 -07:00
this,
"PN puts the top ten cards of his or her library into his or her graveyard."
):
MagicEvent.NONE;
}
@Override
2013-06-05 22:57:29 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-03-18 06:18:20 -07:00
game.doAction(new MagicMillLibraryAction(event.getPlayer(),10));
}
}
]