magarena/release/Magarena/scripts/Hedron_Crab.groovy

23 lines
775 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicLandfallTrigger() {
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
return new MagicEvent(
permanent,
MagicTargetChoice.TARGET_PLAYER,
this,
"Target player\$ puts the top three cards " +
"of his or her library into his or her graveyard."
);
}
@Override
2013-06-15 03:09:37 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:58:51 -07:00
event.processTargetPlayer(game,new MagicPlayerAction() {
public void doAction(final MagicPlayer player) {
game.doAction(new MagicMillLibraryAction(player,3));
}
});
}
}
]