mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
* Added "Duel Commander" format (fixes #436).
This commit is contained in:
parent
6f8de373ac
commit
d7f100b24b
21 changed files with 280 additions and 167 deletions
|
|
@ -40,8 +40,8 @@ public class CommanderFreeForAll extends GameCommanderImpl {
|
|||
|
||||
private int numPlayers;
|
||||
|
||||
public CommanderFreeForAll(MultiplayerAttackOption attackOption, RangeOfInfluence range, int freeMulligans) {
|
||||
super(attackOption, range, freeMulligans);
|
||||
public CommanderFreeForAll(MultiplayerAttackOption attackOption, RangeOfInfluence range, int freeMulligans, int startLife) {
|
||||
super(attackOption, range, freeMulligans, startLife);
|
||||
}
|
||||
|
||||
public CommanderFreeForAll(final CommanderFreeForAll game) {
|
||||
|
|
|
|||
|
|
@ -43,8 +43,15 @@ public class CommanderFreeForAllMatch extends MatchImpl {
|
|||
|
||||
@Override
|
||||
public void startGame() throws GameException {
|
||||
CommanderFreeForAll game = new CommanderFreeForAll(options.getAttackOption(), options.getRange(), options.getFreeMulligans());
|
||||
int startLife = 40;
|
||||
boolean alsoLibrary = false;
|
||||
if (options.getDeckType().equals("Duel Commander")) {
|
||||
startLife = 30;
|
||||
alsoLibrary = true;
|
||||
}
|
||||
CommanderFreeForAll game = new CommanderFreeForAll(options.getAttackOption(), options.getRange(), options.getFreeMulligans(), startLife);
|
||||
game.setStartMessage(this.createGameStartMessage());
|
||||
game.setAlsoLibrary(alsoLibrary);
|
||||
initGame(game);
|
||||
games.add(game);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue