Search in sources :

Example 11 with Mulligan

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

the class FreeformUnlimitedCommanderTest method test_construct_returnsFreeformPlusCommander.

@Test
public void test_construct_returnsFreeformPlusCommander() {
    // Arrange
    Mulligan mulligan = new LondonMulligan(1);
    int startLife = 40;
    // Assert
    FreeformUnlimitedCommander game = new FreeformUnlimitedCommander(MultiplayerAttackOption.MULTIPLE, RangeOfInfluence.ALL, mulligan, startLife);
    // Assert
    Assert.assertEquals(FreeformUnlimitedCommander.class, game.getClass());
}
Also used : LondonMulligan(mage.game.mulligan.LondonMulligan) Mulligan(mage.game.mulligan.Mulligan) FreeformUnlimitedCommander(mage.game.FreeformUnlimitedCommander) LondonMulligan(mage.game.mulligan.LondonMulligan) Test(org.junit.Test)

Example 12 with Mulligan

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

the class PennyDreadfulCommanderFreeForAllMatch method startGame.

@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());
    PennyDreadfulCommanderFreeForAll game = new PennyDreadfulCommanderFreeForAll(options.getAttackOption(), options.getRange(), mulligan, startLife);
    game.setStartMessage(this.createGameStartMessage());
    initGame(game);
    games.add(game);
}
Also used : Mulligan(mage.game.mulligan.Mulligan)

Example 13 with Mulligan

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

the class TwoPlayerMatch method startGame.

@Override
public void startGame() throws GameException {
    Mulligan mulligan = options.getMulliganType().getMulligan(options.getFreeMulligans());
    // 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);
    games.add(game);
}
Also used : Mulligan(mage.game.mulligan.Mulligan)

Example 14 with Mulligan

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

the class MomirDuelMatch method startGame.

@Override
public void startGame() throws GameException {
    // Momir Vig, Simic Visionary gives +4 starting life
    int startLife = 24;
    Mulligan mulligan = options.getMulliganType().getMulligan(options.getFreeMulligans());
    MomirDuel game = new MomirDuel(options.getAttackOption(), options.getRange(), mulligan, startLife);
    game.setStartMessage(this.createGameStartMessage());
    this.initGame(game);
    games.add(game);
}
Also used : Mulligan(mage.game.mulligan.Mulligan)

Example 15 with Mulligan

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

the class CommanderFreeForAllMatch method startGame.

@Override
public void startGame() throws GameException {
    int startLife = 40;
    if (options.getDeckType().equals("Variant Magic - Duel Commander")) {
        startLife = 30;
    }
    Mulligan mulligan = options.getMulliganType().getMulligan(options.getFreeMulligans());
    CommanderFreeForAll game = new CommanderFreeForAll(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