magarena/release/Magarena/scripts/Festerhide_Boar.groovy

17 lines
514 B
Groovy
Raw Normal View History

2013-05-17 20:50:10 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
@Override
2013-06-19 07:23:35 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
2013-05-17 20:50:10 -07:00
if (game.getCreatureDiedThisTurn()) {
game.doAction(new MagicChangeCountersAction(
permanent,
MagicCounterType.PlusOne,
2,
true
));
}
return MagicEvent.NONE;
}
}
]