magarena/release/Magarena/scripts/Festerhide_Boar.groovy

17 lines
508 B
Groovy
Raw Normal View History

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