20 lines
647 B
Groovy
20 lines
647 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,
|
|
final Object[] choiceResults) {
|
|
game.doAction(new MagicDrawAction(event.getPlayer(),event.getCardOnStack().getX()));
|
|
}
|
|
}
|
|
]
|