25 lines
904 B
Groovy
25 lines
904 B
Groovy
[
|
|
new MagicSpellCardEvent() {
|
|
@Override
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
MagicTargetChoice.TARGET_OPPONENT,
|
|
this,
|
|
"Target opponent\$ discards a card at random, then discards a card."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame game,
|
|
final MagicEvent event) {
|
|
event.processTargetPlayer(game,new MagicPlayerAction() {
|
|
public void doAction(final MagicPlayer player) {
|
|
game.addEvent(new MagicDiscardEvent(event.getSource(),player,1,true));
|
|
game.addEvent(new MagicDiscardEvent(event.getSource(),player,1,false));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|