magarena/release/Magarena/scripts/Time_Walk.groovy

20 lines
597 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"Take an extra turn after this one."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
game.doAction(new MagicChangeExtraTurnsAction(event.getPlayer(),1));
}
}
]