magarena/release/Magarena/scripts/Gravetiller_Wurm.groovy

20 lines
558 B
Groovy
Raw Normal View History

2013-05-17 23:01:42 -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,
4,
true
));
}
return MagicEvent.NONE;
}
}
]