magarena/release/Magarena/scripts/Vision_Skeins.groovy

21 lines
670 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"Each player draws two cards.");
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
for (final MagicPlayer player : game.getPlayers()) {
game.doAction(new MagicDrawAction(player,2));
}
}
}
]