magarena/release/Magarena/scripts/Entreat_the_Angels.groovy

22 lines
704 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicSpellCardEvent() {
@Override
2013-06-15 18:11:36 -07:00
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
2013-04-12 19:58:51 -07:00
return new MagicEvent(
cardOnStack,
2013-07-02 02:58:42 -07:00
payedCost.getX(),
2013-04-12 19:58:51 -07:00
this,
2013-07-02 02:58:42 -07:00
"PN puts RN 4/4 white Angel creature tokens with flying onto the battlefield."
2013-04-12 19:58:51 -07:00
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-07-02 02:58:42 -07:00
game.doAction(new MagicPlayTokensAction(
event.getPlayer(),
TokenCardDefinitions.get("Angel4"),
event.getRefInt()
));
2013-04-12 19:58:51 -07:00
}
}
]