12 lines
376 B
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;
|
|
}
|
|
}
|
|
]
|