magarena/release/Magarena/scripts/Moroii.groovy

19 lines
621 B
Groovy
Raw Normal View History

2013-03-13 07:21:12 -07:00
[
new MagicAtUpkeepTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-09-21 18:20:22 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
return permanent.isController(upkeepPlayer) ?
2012-06-17 05:19:08 -07:00
new MagicEvent(
2012-09-21 18:20:22 -07:00
permanent,
this,
"PN loses 1 life."
):
2011-09-04 01:19:43 -07:00
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
2012-08-30 07:01:50 -07:00
game.doAction(new MagicChangeLifeAction(event.getPlayer(),-1));
2012-06-17 05:19:08 -07:00
}
2013-03-13 07:21:12 -07:00
}
]