mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
[Commander]Added alternative lose condition. (21 damages by commander)
This commit is contained in:
parent
62d5d43a33
commit
a8538885ab
3 changed files with 129 additions and 1 deletions
|
|
@ -37,6 +37,7 @@ import mage.game.events.ZoneChangeEvent;
|
|||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.game.command.Commander;
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -194,6 +195,9 @@ public class PermanentCard extends PermanentImpl<PermanentCard> {
|
|||
case EXILED:
|
||||
game.getExile().getPermanentExile().add(card);
|
||||
break;
|
||||
case COMMAND:
|
||||
game.addCommander(new Commander(card));
|
||||
break;
|
||||
case LIBRARY:
|
||||
if (flag)
|
||||
owner.getLibrary().putOnTop(card, game);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue