magarena/release/Magarena/scripts/Black_Cat.groovy

26 lines
696 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicWhenDiesTrigger() {
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
final MagicPlayer opponent = permanent.getOpponent();
return new MagicEvent(
permanent,
opponent,
this,
"PN discards a card at random."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.addEvent(new MagicDiscardEvent(
event.getSource(),
event.getPlayer(),
1,
true
));
}
}
]