magarena/release/Magarena/scripts/Arctic_Nishoba.groovy

23 lines
794 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicWhenLeavesPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicRemoveFromPlayAction act) {
return act.isPermanent(permanent) ?
2013-04-12 19:58:51 -07:00
new MagicEvent(
permanent,
this,
2013-06-15 07:27:32 -07:00
"PN gains 2 life for each age counter on SN."
):
2013-04-12 19:58:51 -07:00
MagicEvent.NONE;
}
@Override
2013-06-15 07:08:11 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:58:51 -07:00
final int amount = event.getPermanent().getCounters(MagicCounterType.Charge) * 2;
game.doAction(new MagicChangeLifeAction(
event.getPlayer(),
amount
));
}
}
]