From e1f33033fcbf1a18c103a6d0c5a93814dd724a23 Mon Sep 17 00:00:00 2001 From: valsan-azerty-boi <52854501+valsan-azerty-boi@users.noreply.github.com> Date: Tue, 6 May 2025 13:22:44 +0200 Subject: [PATCH] aq gate visiblity fix --- src/vanillaScripts/aq_scripts.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/vanillaScripts/aq_scripts.cpp b/src/vanillaScripts/aq_scripts.cpp index 799ded9..ed904d0 100644 --- a/src/vanillaScripts/aq_scripts.cpp +++ b/src/vanillaScripts/aq_scripts.cpp @@ -226,11 +226,16 @@ public: return false; } - /* - Gate is visible and closed if the player has not passed the gong quest if it's required (IndividualProgression.RequirePreAQQuests = 1) - or has not yet benefited from the skip before defeating Nefarian if gong quest not required (IndividualProgression.RequirePreAQQuests = 0) - */ - return sIndividualProgression->isBeforeProgression(target, PROGRESSION_PRE_AQ); + if (sIndividualProgression->requirePreAQQuests) + { + // Gate visible and closed if player has not passed the gong quest if it's required (IndividualProgression.RequirePreAQQuests = 1) + return sIndividualProgression->isBeforeProgression(target, PROGRESSION_AQ); + } + else + { + // Gate visible and closed if player has not yet benefited from the skip before defeating Nefarian if gong quest not required (IndividualProgression.RequirePreAQQuests = 0) + return sIndividualProgression->isBeforeProgression(target, PROGRESSION_PRE_AQ); + } } };