magarena/release/Magarena/scripts/Burning_Inquiry.groovy

24 lines
775 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
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 at random."
2013-04-12 19:58:51 -07:00
);
}
@Override
2013-06-15 07:01:56 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:58:51 -07:00
for (final MagicPlayer player : game.getPlayers()) {
game.doAction(new MagicDrawAction(player, 3));
game.addEvent(MagicDiscardEvent.Random(
2013-04-12 19:58:51 -07:00
event.getSource(),
2013-06-23 18:29:26 -07:00
player,
3
2013-04-12 19:58:51 -07:00
));
}
}
}
]