magarena/release/Magarena/scripts/Kor_Aeronaut.groovy

29 lines
976 B
Groovy
Raw Normal View History

2013-05-18 04:50:46 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
2013-04-12 19:32:25 -07:00
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
final MagicPlayer player) {
return (permanent.isKicked()) ?
new MagicEvent(
permanent,
player,
MagicTargetChoice.POS_TARGET_CREATURE,
this,
2013-05-18 04:50:46 -07:00
"Target creature\$ gains flying until end of turn."
2013-04-12 19:32:25 -07:00
):
MagicEvent.NONE;
}
@Override
2013-05-18 04:50:46 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:32:25 -07:00
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.Flying));
}
});
}
2013-05-18 04:50:46 -07:00
}
]