Search in sources :

Example 6 with Mulligan

use of mage.game.mulligan.Mulligan in project mage by magefree.

the class FreeForAllMatch method startGame.

@Override
public void startGame() throws GameException {
    Mulligan mulligan = options.getMulliganType().getMulligan(options.getFreeMulligans());
    FreeForAll game = new FreeForAll(options.getAttackOption(), options.getRange(), mulligan, 20);
    game.setStartMessage(this.createGameStartMessage());
    initGame(game);
    games.add(game);
}
Also used : Mulligan(mage.game.mulligan.Mulligan)

Example 7 with Mulligan

use of mage.game.mulligan.Mulligan in project mage by magefree.

the class FreeformCommanderDuelMatch method startGame.

@Override
public void startGame() throws GameException {
    int startLife = 40;
    Mulligan mulligan = options.getMulliganType().getMulligan(options.getFreeMulligans());
    FreeformCommanderDuel game = new FreeformCommanderDuel(options.getAttackOption(), options.getRange(), mulligan, startLife);
    game.setCheckCommanderDamage(true);
    game.setStartMessage(this.createGameStartMessage());
    initGame(game);
    games.add(game);
}
Also used : Mulligan(mage.game.mulligan.Mulligan)

Example 8 with Mulligan

use of mage.game.mulligan.Mulligan in project mage by magefree.

the class CommanderDuelMatch method startGame.

@Override
public void startGame() throws GameException {
    int startLife = 40;
    // Don't like it to compare but seems like it's complicated to do it in another way
    boolean checkCommanderDamage = true;
    if (options.getDeckType().equals("Variant Magic - Duel Commander")) {
        // Starting with the Commander 2016 update (on November 11th, 2016), Duel Commander will be played with 20 life points instead of 30.
        startLife = 20;
        // since nov 16 duel commander uses no longer commander damage rule
        checkCommanderDamage = false;
    }
    if (options.getDeckType().equals("Variant Magic - MTGO 1v1 Commander")) {
        startLife = 30;
    }
    if (options.getDeckType().equals("Variant Magic - Centurion Commander")) {
        startLife = 25;
    }
    Mulligan mulligan = options.getMulliganType().getMulligan(options.getFreeMulligans());
    CommanderDuel game = new CommanderDuel(options.getAttackOption(), options.getRange(), mulligan, startLife);
    game.setCheckCommanderDamage(checkCommanderDamage);
    game.setStartMessage(this.createGameStartMessage());
    initGame(game);
    games.add(game);
}
Also used : Mulligan(mage.game.mulligan.Mulligan)

Example 9 with Mulligan

use of mage.game.mulligan.Mulligan in project mage by magefree.

the class BrawlDuelMatch method startGame.

@Override
public void startGame() throws GameException {
    int startLife = 25;
    Mulligan mulligan = options.getMulliganType().getMulligan(options.getFreeMulligans());
    BrawlDuel game = new BrawlDuel(options.getAttackOption(), options.getRange(), mulligan, startLife);
    game.setCheckCommanderDamage(false);
    game.setStartMessage(this.createGameStartMessage());
    initGame(game);
    games.add(game);
}
Also used : Mulligan(mage.game.mulligan.Mulligan)

Example 10 with Mulligan

use of mage.game.mulligan.Mulligan in project mage by magefree.

the class CanadianHighlanderDuelMatch method startGame.

@Override
public void startGame() throws GameException {
    int startLife = 20;
    Mulligan mulligan = options.getMulliganType().orDefault(CANADIAN_HIGHLANDER).getMulligan(options.getFreeMulligans());
    CanadianHighlanderDuel game = new CanadianHighlanderDuel(options.getAttackOption(), options.getRange(), mulligan, startLife);
    game.setStartMessage(this.createGameStartMessage());
    initGame(game);
    games.add(game);
}
Also used : Mulligan(mage.game.mulligan.Mulligan)

Aggregations

Mulligan (mage.game.mulligan.Mulligan)16 FreeformUnlimitedCommander (mage.game.FreeformUnlimitedCommander)1 LondonMulligan (mage.game.mulligan.LondonMulligan)1 Test (org.junit.Test)1