mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48: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,11 +740,18 @@ public class QuestEventDraft {
|
|||||||
|
|
||||||
if (quest.getFormat() != null) {
|
if (quest.getFormat() != null) {
|
||||||
|
|
||||||
final List<String> allowedSetCodes = quest.getFormat().getAllowedSetCodes();
|
List<String> allowedSetCodes = quest.getFormat().getAllowedSetCodes();
|
||||||
|
|
||||||
|
if (!allowedSetCodes.isEmpty()) {
|
||||||
for (final String setCode : allowedSetCodes) {
|
for (final String setCode : allowedSetCodes) {
|
||||||
allowedQuestSets.add(FModel.getMagicDb().getEditions().get(setCode));
|
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