fixed issue 160

This commit is contained in:
BetaSteward 2011-06-17 10:29:50 -04:00
parent 35f1a63c4e
commit a0192c0e47
4 changed files with 8 additions and 4 deletions

View file

@ -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());
}

View file

@ -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

View file

@ -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