mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
spjspj - Modify Rich Man draft to be random
This commit is contained in:
parent
218fd088b8
commit
5ee4b5193e
2 changed files with 2 additions and 1 deletions
|
|
@ -44,6 +44,7 @@ public class RichManDraftEliminationTournamentType extends TournamentType {
|
||||||
this.limited = true;
|
this.limited = true;
|
||||||
this.cubeBooster = false;
|
this.cubeBooster = false;
|
||||||
this.elimination = true;
|
this.elimination = true;
|
||||||
|
this.isRandom = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ public class RichManBoosterDraft extends DraftImpl {
|
||||||
UUID nextId = table.getNext();
|
UUID nextId = table.getNext();
|
||||||
DraftPlayer next = players.get(nextId);
|
DraftPlayer next = players.get(nextId);
|
||||||
while (true) {
|
while (true) {
|
||||||
List<Card> nextBooster = sets.get(0).createBooster();
|
List<Card> nextBooster = sets.get(cardNum % sets.size()).createBooster();
|
||||||
next.setBooster(nextBooster);
|
next.setBooster(nextBooster);
|
||||||
if (nextId == startId) {
|
if (nextId == startId) {
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue