magarena/release/Magarena/scripts/Safe_Passage.groovy

18 lines
631 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,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
game.doAction(new MagicChangePlayerStateAction(event.getPlayer(),MagicPlayerState.PreventAllDamage));
2012-06-17 05:19:08 -07:00
}
2013-03-13 22:23:12 -07:00
}
]