magarena/release/Magarena/scripts/Black_Cat.groovy

26 lines
721 B
Groovy
Raw Normal View History

2013-03-14 06:35:27 -07:00
[
new MagicWhenDiesTrigger() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
final MagicPlayer opponent = permanent.getOpponent();
2012-06-17 05:19:08 -07:00
return new MagicEvent(
2013-03-14 06:41:44 -07:00
permanent,
opponent,
this,
"PN discards a card at random."
);
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
2012-02-22 11:00:15 -08:00
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2012-06-17 05:19:08 -07:00
game.addEvent(new MagicDiscardEvent(
2013-03-14 06:35:27 -07:00
event.getSource(),
event.getPlayer(),
1,
true
));
2012-06-17 05:19:08 -07:00
}
2013-03-14 06:35:27 -07:00
}
]