magarena/release/Magarena/scripts/Faerie_Squadron.groovy

21 lines
652 B
Groovy

[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
final MagicPayedCost payedCost) {
if (payedCost.isKicked()) {
game.doAction(new MagicChangeCountersAction(
permanent,
MagicCounterType.PlusOne,
2,
true
));
game.doAction(new MagicGainAbilityAction(permanent,MagicAbility.Flying,MagicStatic.Forever));
}
return MagicEvent.NONE;
}
}
]