magarena/release/Magarena/scripts/Platinum_Angel.groovy

12 lines
376 B
Groovy

[
new MagicIfPlayerWouldLoseTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicLoseGameAction loseAct) {
if (permanent.isController(loseAct.getPlayer())) {
loseAct.setPlayer(MagicPlayer.NONE);
}
return MagicEvent.NONE;
}
}
]