magarena/release/Magarena/scripts/Mind_Spring.groovy

19 lines
601 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
final int amount=payedCost.getX();
return new MagicEvent(
cardOnStack,
this,
"Draw "+amount+" cards.");
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.doAction(new MagicDrawAction(event.getPlayer(),event.getCardOnStack().getX()));
}
}
]