magarena/release/Magarena/scripts/Empyrial_Archangel.groovy

13 lines
431 B
Groovy
Raw Normal View History

2013-03-13 06:21:42 -07:00
[
new MagicIfDamageWouldBeDealtTrigger(2) {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
if (permanent.isController(damage.getTarget())) {
// Replacement effect. Generates no event or action.
2013-06-23 18:29:26 -07:00
damage.setTarget(permanent);
2013-03-13 06:21:42 -07:00
}
return MagicEvent.NONE;
}
}
]