magarena/release/Magarena/scripts/Mass_Appeal.groovy

23 lines
731 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.getNrOfPermanentsWithSubType(MagicSubType.Human)));
}
}
]