magarena/release/Magarena/scripts/Mourning_Thrull.groovy

21 lines
682 B
Groovy

[
new MagicWhenDamageIsDealtTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
return permanent == damage.getSource() ?
new MagicEvent(
permanent,
damage.getDealtAmount(),
this,
"PN gains RN life."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeLifeAction(event.getPlayer(),event.getRefInt()));
}
}
]