magarena/release/Magarena/scripts/Time_Walk.groovy

17 lines
522 B
Groovy

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