magarena/release/Magarena/scripts/Jace_Beleren.groovy

63 lines
2.1 KiB
Groovy
Raw Normal View History

2013-02-26 06:33:13 -08:00
[
new MagicPlaneswalkerActivation(2) {
2013-02-26 06:33:13 -08:00
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Each player draws a card."
);
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2013-02-26 06:33:13 -08:00
for (final MagicPlayer player : game.getPlayers()) {
game.doAction(new MagicDrawAction(player, 1));
}
}
},
new MagicPlaneswalkerActivation(-1) {
2013-02-26 06:33:13 -08:00
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.POS_TARGET_PLAYER,
this,
"Target player\$ draws a card."
);
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
event.processTargetPlayer(game,new MagicPlayerAction() {
2013-02-26 06:33:13 -08:00
public void doAction(final MagicPlayer player) {
game.doAction(new MagicDrawAction(player,1));
}
});
}
},
new MagicPlaneswalkerActivation(-10) {
2013-02-26 06:33:13 -08:00
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.NEG_TARGET_PLAYER,
this,
"Target player\$ puts the top twenty cards of his or her library into his or her graveyard."
);
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
event.processTargetPlayer(game,new MagicPlayerAction() {
2013-02-26 06:33:13 -08:00
public void doAction(final MagicPlayer player) {
game.doAction(new MagicMillLibraryAction(player, 20));
}
});
}
}
]