magarena/release/Magarena/scripts/Safe_Passage.groovy

17 lines
599 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(
2013-06-15 07:01:56 -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
2013-06-15 07:01:56 -07:00
public void executeEvent(final MagicGame game, 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
}
]