magarena/release/Magarena/scripts/Train_of_Thought.groovy

22 lines
634 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) {
game.doAction(new MagicDrawAction(event.getPlayer(),1));
}
}
]