magarena/release/Magarena/scripts/Guardian_Seraph.groovy

13 lines
431 B
Groovy

[
new MagicIfDamageWouldBeDealtTrigger(5) {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
if (permanent.isEnemy(damage.getSource()) && permanent.isController(damage.getTarget())) {
// Prevention effect.
damage.prevent(1);
}
return MagicEvent.NONE;
}
}
]