mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Do not generate quest booster drafts for sets that do not have a booster template available for them and will thus crash.
This commit is contained in:
@@ -821,6 +821,10 @@ public class QuestEventDraft implements IQuestEvent {
|
|||||||
|
|
||||||
for (CardEdition allowedQuestSet : allowedQuestSets) {
|
for (CardEdition allowedQuestSet : allowedQuestSets) {
|
||||||
if (allowedQuestSet.isLargeSet() && !singleSets.contains(allowedQuestSet.getCode())) {
|
if (allowedQuestSet.isLargeSet() && !singleSets.contains(allowedQuestSet.getCode())) {
|
||||||
|
if (!allowedQuestSet.hasBoosterTemplate()) {
|
||||||
|
// skip sets that do not have a booster template and will thus crash
|
||||||
|
continue;
|
||||||
|
}
|
||||||
possibleFormats.add(new QuestDraftFormat(allowedQuestSet));
|
possibleFormats.add(new QuestDraftFormat(allowedQuestSet));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user