magarena/release/Magarena/scripts/Bountiful_Harvest.groovy

21 lines
693 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"PN gains 1 life for each land you control."
);
}
@Override
2013-06-15 06:13:32 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:58:51 -07:00
final MagicPlayer player = event.getPlayer();
final int amount = player.getNrOfPermanents(MagicType.Land);
2013-04-12 19:58:51 -07:00
if (amount > 0) {
game.doAction(new MagicChangeLifeAction(player,amount));
}
}
}
]