magarena/release/Magarena/scripts/Liliana_s_Specter.groovy

23 lines
775 B
Groovy
Raw Normal View History

2013-03-17 23:09:35 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
2011-08-13 07:51:18 -07:00
@Override
2012-06-17 05:19:08 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
final MagicPlayer opponent = player.getOpponent();
2012-06-17 05:19:08 -07:00
return new MagicEvent(
2013-03-17 23:15:37 -07:00
permanent,
opponent,
this,
"PN discards a card."
);
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
2011-08-13 07:51:18 -07:00
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2012-09-01 19:55:17 -07:00
final MagicPermanent permanent=event.getPermanent();
final MagicPlayer player=event.getPlayer();
2012-06-17 05:19:08 -07:00
game.addEvent(new MagicDiscardEvent(permanent,player,1,false));
}
2013-03-17 23:09:35 -07:00
}
]