forked from External/mage
* add startHandSize / startLife to the custom option panel * use the custom startLife/startHandsize in all Game Modes
34 lines
1.2 KiB
Java
34 lines
1.2 KiB
Java
package mage.game;
|
|
|
|
import mage.game.match.MatchImpl;
|
|
import mage.game.match.MatchOptions;
|
|
import mage.game.mulligan.Mulligan;
|
|
|
|
/**
|
|
* @author spjspj
|
|
*/
|
|
public class PennyDreadfulCommanderFreeForAllMatch extends MatchImpl {
|
|
|
|
public PennyDreadfulCommanderFreeForAllMatch(MatchOptions options) {
|
|
super(options);
|
|
}
|
|
|
|
@Override
|
|
public void startGame() throws GameException {
|
|
int startLife = 40;
|
|
if (options.getDeckType().equals("Variant Magic - Duel Penny Dreadful Commander")) {
|
|
startLife = 30;
|
|
}
|
|
Mulligan mulligan = options.getMulliganType().getMulligan(options.getFreeMulligans());
|
|
startLife = options.isCustomStartLifeEnabled() ? options.getCustomStartLife() : startLife;
|
|
int startHandSize = options.isCustomStartHandSizeEnabled() ? options.getCustomStartHandSize() : 7;
|
|
PennyDreadfulCommanderFreeForAll game = new PennyDreadfulCommanderFreeForAll(
|
|
options.getAttackOption(), options.getRange(),
|
|
mulligan, startLife, startHandSize
|
|
);
|
|
game.setStartMessage(this.createGameStartMessage());
|
|
initGame(game);
|
|
games.add(game);
|
|
}
|
|
|
|
}
|