magarena/release/Magarena/scripts/Druid_s_Deliverance.groovy

21 lines
745 B
Groovy
Raw Normal View History

2013-02-19 05:41:31 -08:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"Prevent all combat damage that would be dealt to you this turn. Populate."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
game.doAction(new MagicChangePlayerStateAction(event.getPlayer(),MagicPlayerState.PreventAllCombatDamage));
game.addEvent(new MagicPopulateEvent(event.getSource()));
}
}
]