Fixed missing override, restored and additional comments

This commit is contained in:
Oleg Agafonov 2021-04-02 11:43:42 +04:00
parent f307bffcda
commit 05b1366c39
3 changed files with 22 additions and 2 deletions

View file

@ -1,4 +1,3 @@
package mage.game;
import mage.game.match.MatchImpl;
@ -17,7 +16,12 @@ public class TwoPlayerMatch extends MatchImpl {
@Override
public void startGame() throws GameException {
Mulligan mulligan = options.getMulliganType().getMulligan(options.getFreeMulligans());
TwoPlayerDuel game = new TwoPlayerDuel(options.getAttackOption(), options.getRange(), mulligan, 20, options.isLimited() || "Limited".equals(options.getDeckType()) ? 40 : 60);
// workaround to enable limited deck size in limited set as deck type (Yorion, Sky Nomad)
// see comments from https://github.com/magefree/mage/commit/4874ad31c199ea573187ea2790268be3a4d4c95a
boolean isLimitedDeck = options.isLimited() || "Limited".equals(options.getDeckType());
TwoPlayerDuel game = new TwoPlayerDuel(options.getAttackOption(), options.getRange(), mulligan, 20, isLimitedDeck ? 40 : 60);
// Sets a start message about the match score
game.setStartMessage(this.createGameStartMessage());
initGame(game);