20 lines
613 B
Groovy
20 lines
613 B
Groovy
[
|
|
new MagicWhenDiscardedTrigger() {
|
|
@Override
|
|
public MagicEvent getEvent(final MagicPermanent permanent,final MagicCard card) {
|
|
return permanent.isEnemy(card) ?
|
|
new MagicEvent(
|
|
permanent,
|
|
card.getOwner(),
|
|
this,
|
|
"PN loses 2 life."
|
|
):
|
|
MagicEvent.NONE;
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicChangeLifeAction(event.getPlayer(),-2));
|
|
}
|
|
}
|
|
]
|