magarena/release/Magarena/scripts/Entreat_the_Angels.groovy

22 lines
740 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
payedCost.getX(),
this,
"PN puts RN 4/4 white Angel creature tokens with flying onto the battlefield."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokensAction(
event.getPlayer(),
TokenCardDefinitions.get("4/4 white Angel creature token with flying"),
event.getRefInt()
));
}
}
]