magarena/release/Magarena/scripts/Burning_Inquiry.groovy

27 lines
823 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"Each player draw three cards then discard three cards."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
for (final MagicPlayer player : game.getPlayers()) {
game.doAction(new MagicDrawAction(player, 3));
game.addEvent(new MagicDiscardEvent(
event.getSource(),
player,
3,
true
));
}
}
}
]