1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-03 17:00:16 -09:00

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
Mage.Server.Plugins/Mage.Tournament.BoosterDraft/src/mage/tournament
Mage.Server/plugins
Mage/src/mage/game/draft

View file

@ -54,7 +54,7 @@ public class BoosterDraftEliminationTournament extends TournamentSingleEliminati
} }
protected void draft() { protected void draft() {
Draft draft = new BoosterDraft((DraftOptions) options.getLimitedOptions()); Draft draft = new BoosterDraft((DraftOptions) options.getLimitedOptions(), getSets());
for (TournamentPlayer player: players.values()) { for (TournamentPlayer player: players.values()) {
draft.addPlayer(player.getPlayer()); draft.addPlayer(player.getPlayer());
} }

View file

@ -28,14 +28,17 @@
package mage.game.draft; package mage.game.draft;
import java.util.List;
import mage.cards.ExpansionSet;
/** /**
* *
* @author BetaSteward_at_googlemail.com * @author BetaSteward_at_googlemail.com
*/ */
public class BoosterDraft extends DraftImpl<BoosterDraft> { public class BoosterDraft extends DraftImpl<BoosterDraft> {
public BoosterDraft(DraftOptions options) { public BoosterDraft(DraftOptions options, List<ExpansionSet> sets) {
super(options); super(options, sets);
} }
@Override @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 TableEventSource tableEventSource = new TableEventSource();
protected transient PlayerQueryEventSource playerQueryEventSource = new PlayerQueryEventSource(); protected transient PlayerQueryEventSource playerQueryEventSource = new PlayerQueryEventSource();
public DraftImpl(DraftOptions options) { public DraftImpl(DraftOptions options, List<ExpansionSet> sets) {
id = UUID.randomUUID(); id = UUID.randomUUID();
this.setCodes = options.getSetCodes(); this.setCodes = options.getSetCodes();
this.timing = options.getTiming(); this.timing = options.getTiming();
this.sets = sets;
} }
@Override @Override