magarena/release/Magarena/scripts/Train_of_Thought.groovy

23 lines
702 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(
final MagicCardOnStack cardOnStack,
final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
new MagicKickerChoice(MagicManaCost.create("{1}{U}"), true, true),
this,
"Draw a card."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
game.doAction(new MagicDrawAction(event.getPlayer(),1));
}
}
]