- 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:
Agetian
2017-01-01 10:30:57 +00:00
parent beadf13c30
commit 46a76ce69b

View File

@@ -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));
} }
} }