magarena/release/Magarena/scripts/Safe_Passage.groovy

19 lines
677 B
Groovy
Raw Normal View History

2013-03-13 22:23:12 -07:00
[
new MagicSpellCardEvent() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
2012-09-15 18:13:41 -07:00
cardOnStack,
this,
"Prevent all damage that would be dealt to you and creatures you control this turn.");
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
game.doAction(new MagicChangePlayerStateAction(event.getPlayer(),MagicPlayerState.PreventAllDamage));
2012-06-17 05:19:08 -07:00
}
2013-03-13 22:23:12 -07:00
}
]