magarena/release/Magarena/scripts/Ashenmoor_Liege.groovy

23 lines
800 B
Groovy
Raw Normal View History

2013-05-28 05:08:31 -07:00
[
new MagicWhenTargetedTrigger() {
2013-04-12 19:32:25 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicItemOnStack target) {
final MagicPlayer targetPlayer = target.getController();
return (target.containsInChoiceResults(permanent) &&
targetPlayer != permanent.getController()) ?
new MagicEvent(
permanent,
2013-05-28 05:08:31 -07:00
targetPlayer,
2013-04-12 19:32:25 -07:00
this,
2013-05-28 05:08:31 -07:00
"PN loses 4 life."
):
2013-04-12 19:32:25 -07:00
MagicEvent.NONE;
}
2013-06-23 18:29:26 -07:00
2013-04-12 19:32:25 -07:00
@Override
2013-05-28 05:08:31 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeLifeAction(event.getPlayer(),-4));
2013-04-12 19:32:25 -07:00
}
2013-05-28 05:08:31 -07:00
}
]