mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
* add startHandSize / startLife to the custom option panel * use the custom startLife/startHandsize in all Game Modes
35 lines
1 KiB
Java
35 lines
1 KiB
Java
|
|
package mage.game;
|
|
|
|
import mage.game.match.MatchImpl;
|
|
import mage.game.match.MatchOptions;
|
|
import mage.game.mulligan.Mulligan;
|
|
|
|
/**
|
|
* @author nigelzor
|
|
*/
|
|
public class MomirFreeForAllMatch extends MatchImpl {
|
|
|
|
public MomirFreeForAllMatch(MatchOptions options) {
|
|
super(options);
|
|
}
|
|
|
|
@Override
|
|
public void startGame() throws GameException {
|
|
// Momir Vig, Simic Visionary gives +4 starting life
|
|
int startLife = 24;
|
|
|
|
Mulligan mulligan = options.getMulliganType().getMulligan(options.getFreeMulligans());
|
|
startLife = options.isCustomStartLifeEnabled() ? options.getCustomStartLife() : startLife;
|
|
int startHandSize = options.isCustomStartHandSizeEnabled() ? options.getCustomStartHandSize() : 7;
|
|
MomirGame game = new MomirGame(
|
|
options.getAttackOption(), options.getRange(),
|
|
mulligan, startLife, startHandSize
|
|
);
|
|
game.setStartMessage(this.createGameStartMessage());
|
|
|
|
this.initGame(game);
|
|
games.add(game);
|
|
}
|
|
|
|
}
|