magarena/release/Magarena/scripts/Hollowhenge_Scavenger.groovy

21 lines
652 B
Groovy

[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
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));
}
}
]