magarena/release/Magarena/scripts/Platinum_Angel.groovy

13 lines
433 B
Groovy
Raw Normal View History

2013-03-13 06:00:41 -07:00
[
new MagicIfPlayerWouldLoseTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer[] playerRef) {
final MagicPlayer controller = permanent.getController();
if (controller == playerRef[0]) {
playerRef[0] = MagicPlayer.NONE;
}
return MagicEvent.NONE;
}
}
]