magarena/release/Magarena/scripts/Emeria_Angel.groovy

28 lines
963 B
Groovy

[
new MagicLandfallTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent played) {
return new MagicEvent(
permanent,
new MagicSimpleMayChoice(
MagicSimpleMayChoice.PLAY_TOKEN,
1,
MagicSimpleMayChoice.DEFAULT_YES
),
this,
"PN may\$ put a 1/1 white Bird creature " +
"token with flying onto the battlefield."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
if (event.isYes()) {
game.doAction(new MagicPlayTokenAction(
event.getPlayer(),
TokenCardDefinitions.get("1/1 white Bird creature token with flying")
));
}
}
}
]