magarena/release/Magarena/scripts/Mass_Appeal.groovy

21 lines
660 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"PN draws a card for each Human he or she controls."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPlayer player = event.getPlayer();
game.doAction(new MagicDrawAction(
player,
player.getNrOfPermanents(MagicSubType.Human)
));
}
}
]