magarena/release/Magarena/scripts/Hollowhenge_Scavenger.groovy

19 lines
625 B
Groovy

[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
return game.getCreatureDiedThisTurn() ?
new MagicEvent(
permanent,
this,
"PN gains 5 life."
) :
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeLifeAction(event.getPlayer(),5));
}
}
]