mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Added a button that starts a duel against a random opponent in quest mode.
Fixed some Android pom spacing. Fixed a bug when generating booster boxes.
This commit is contained in:
@@ -605,7 +605,13 @@ public final class QuestUtilCards {
|
||||
|
||||
Collections.shuffle(editions);
|
||||
|
||||
editions = editions.subList(0, Math.max(count / 2, 1));
|
||||
int numberOfBoxes = Math.min(Math.max(count / 2, 1), editions.size());
|
||||
|
||||
if (numberOfBoxes == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
editions = editions.subList(0, numberOfBoxes);
|
||||
|
||||
List<BoosterBox> output = new ArrayList<>();
|
||||
for (CardEdition e : editions) {
|
||||
|
||||
Reference in New Issue
Block a user