magarena/release/Magarena/scripts/Deepwood_Tantiv.groovy

21 lines
667 B
Groovy
Raw Normal View History

2013-03-13 22:22:09 -07:00
[
new MagicWhenBecomesBlockedTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-10-07 02:21:51 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocked) {
return (permanent == blocked) ?
2012-09-21 20:23:05 -07:00
new MagicEvent(
permanent,
this,
"PN gains 2 life."
):
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2012-08-30 06:04:17 -07:00
game.doAction(new MagicChangeLifeAction(event.getPlayer(),2));
2012-06-17 05:19:08 -07:00
}
2013-03-13 22:22:09 -07:00
}
]