magarena/release/Magarena/scripts/Moroii.groovy

22 lines
700 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(
2011-08-13 06:37:22 -07:00
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
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
}
]