magarena/release/Magarena/scripts/Liliana_s_Specter.groovy

20 lines
684 B
Groovy

[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
return new MagicEvent(
permanent,
permanent.getOpponent(),
this,
"PN discards a card."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPermanent permanent=event.getPermanent();
final MagicPlayer player=event.getPlayer();
game.addEvent(new MagicDiscardEvent(permanent,player));
}
}
]