magarena/release/Magarena/scripts/Gather_the_Townsfolk.groovy

26 lines
834 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"PN puts two 1/1 white Human " +
"creature tokens onto the battlefield."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
int amount = MagicCondition.FATEFUL_HOUR.accept(event.getSource()) ? 5 : 2;
for (;amount>0;amount--) {
game.doAction(new MagicPlayTokenAction(
event.getPlayer(),
TokenCardDefinitions.get("Human1")
));
}
}
}
]