magarena/release/Magarena/scripts/Soul_Warden.groovy

21 lines
684 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicWhenOtherComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
2013-06-23 18:29:26 -07:00
return (otherPermanent != permanent &&
2013-04-12 19:58:51 -07:00
otherPermanent.isCreature()) ?
new MagicEvent(
permanent,
this,
"PN gains 1 life."
):
MagicEvent.NONE;
}
2013-06-23 18:29:26 -07:00
2013-04-12 19:58:51 -07:00
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-06-23 18:29:26 -07:00
game.doAction(new MagicChangeLifeAction(event.getPlayer(),1));
}
2013-04-12 19:58:51 -07:00
}
]