24 lines
775 B
Groovy
24 lines
775 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 at random."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
for (final MagicPlayer player : game.getPlayers()) {
|
|
game.doAction(new MagicDrawAction(player, 3));
|
|
game.addEvent(MagicDiscardEvent.Random(
|
|
event.getSource(),
|
|
player,
|
|
3
|
|
));
|
|
}
|
|
}
|
|
}
|
|
]
|