mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Fixed quest draft tournament generation using a token for formats that allow all sets (Vintage, Legacy, etc.).
This commit is contained in:
@@ -740,10 +740,17 @@ public class QuestEventDraft {
|
||||
|
||||
if (quest.getFormat() != null) {
|
||||
|
||||
final List<String> allowedSetCodes = quest.getFormat().getAllowedSetCodes();
|
||||
List<String> allowedSetCodes = quest.getFormat().getAllowedSetCodes();
|
||||
|
||||
for (final String setCode : allowedSetCodes) {
|
||||
allowedQuestSets.add(FModel.getMagicDb().getEditions().get(setCode));
|
||||
if (!allowedSetCodes.isEmpty()) {
|
||||
for (final String setCode : allowedSetCodes) {
|
||||
allowedQuestSets.add(FModel.getMagicDb().getEditions().get(setCode));
|
||||
}
|
||||
} else {
|
||||
// Vintage or Legacy or another format that allows all sets
|
||||
for (CardEdition ce : FModel.getMagicDb().getEditions()) {
|
||||
allowedQuestSets.add(ce);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user