From ae1b6c59b13598cf0f5748fa18f1cd21fd13f029 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Fri, 21 Nov 2025 21:06:14 +0100 Subject: [PATCH] Quests/Requisites * fixed case where an exclusiveGroup of 0 wasn't considered * closes #456 --- endpoints/quest/quest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/quest/quest.php b/endpoints/quest/quest.php index e13e75b7..33be74e6 100644 --- a/endpoints/quest/quest.php +++ b/endpoints/quest/quest.php @@ -1304,7 +1304,7 @@ class QuestBaseResponse extends TemplateResponse implements ICache ['reqQ', array('OR', ['AND', ['nextQuestId', $this->typeId], ['exclusiveGroup', 0, '<']], ['AND', ['id', $this->subject->getField('prevQuestId')], ['nextQuestIdChain', $this->typeId, '!']])], // Requires one of these quests (Requires one of the quests to choose from) - ['reqOneQ', array('OR', ['AND', ['exclusiveGroup', 0, '>'], ['nextQuestId', $this->typeId]], ['breadCrumbForQuestId', $this->typeId])], + ['reqOneQ', array('OR', ['AND', ['exclusiveGroup', 0, '>='], ['nextQuestId', $this->typeId]], ['breadCrumbForQuestId', $this->typeId])], // Opens Quests (Quests that become available only after complete this quest (optionally only one)) ['opensQ', array('OR', ['AND', ['prevQuestId', $this->typeId], ['id', $this->subject->getField('nextQuestIdChain'), '!']], ['id', $this->subject->getField('nextQuestId')], ['id', $this->subject->getField('breadcrumbForQuestId')])],