mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
fixed issue 160
This commit is contained in:
parent
35f1a63c4e
commit
a0192c0e47
4 changed files with 8 additions and 4 deletions
|
@ -54,7 +54,7 @@ public class BoosterDraftEliminationTournament extends TournamentSingleEliminati
|
|||
}
|
||||
|
||||
protected void draft() {
|
||||
Draft draft = new BoosterDraft((DraftOptions) options.getLimitedOptions());
|
||||
Draft draft = new BoosterDraft((DraftOptions) options.getLimitedOptions(), getSets());
|
||||
for (TournamentPlayer player: players.values()) {
|
||||
draft.addPlayer(player.getPlayer());
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -28,14 +28,17 @@
|
|||
|
||||
package mage.game.draft;
|
||||
|
||||
import java.util.List;
|
||||
import mage.cards.ExpansionSet;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class BoosterDraft extends DraftImpl<BoosterDraft> {
|
||||
|
||||
public BoosterDraft(DraftOptions options) {
|
||||
super(options);
|
||||
public BoosterDraft(DraftOptions options, List<ExpansionSet> sets) {
|
||||
super(options, sets);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -64,10 +64,11 @@ public abstract class DraftImpl<T extends DraftImpl<T>> implements Draft {
|
|||
protected transient TableEventSource tableEventSource = new TableEventSource();
|
||||
protected transient PlayerQueryEventSource playerQueryEventSource = new PlayerQueryEventSource();
|
||||
|
||||
public DraftImpl(DraftOptions options) {
|
||||
public DraftImpl(DraftOptions options, List<ExpansionSet> sets) {
|
||||
id = UUID.randomUUID();
|
||||
this.setCodes = options.getSetCodes();
|
||||
this.timing = options.getTiming();
|
||||
this.sets = sets;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue