magarena/release/Magarena/scripts/Nemesis_of_Reason.groovy

18 lines
625 B
Groovy

[
new MagicWhenSelfAttacksTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
return new MagicEvent(
permanent,
game.getDefendingPlayer(),
this,
"PN puts the top ten cards of his or her library into his or her graveyard."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicMillLibraryAction(event.getPlayer(),10));
}
}
]