magarena/release/Magarena/scripts/Drogskol_Reaver.groovy

21 lines
674 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicWhenLifeIsGainedTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicLifeChangeTriggerData lifeChange) {
return permanent.isController(lifeChange.player) ?
new MagicEvent(
permanent,
this,
"PN draws a card."
) :
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.doAction(new MagicDrawAction(event.getPlayer(),1));
}
}
]