magarena/release/Magarena/scripts/Ravenous_Rats.groovy

21 lines
629 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) {
game.addEvent(new MagicDiscardEvent(
event.getSource(),
event.getPlayer()
));
}
}
]