2013-03-14 06:35:27 -07:00
|
|
|
[
|
|
|
|
new MagicWhenDiesTrigger() {
|
2012-06-17 05:19:08 -07:00
|
|
|
@Override
|
2012-09-01 19:06:26 -07:00
|
|
|
public MagicEvent getEvent(final MagicPermanent permanent) {
|
2012-10-07 02:25:50 -07:00
|
|
|
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
|
|
|
}
|
|
|
|
]
|