From 03e9c2b501710430a442cffc7d5f778e8ea9d468 Mon Sep 17 00:00:00 2001 From: Etorix <92535668+EtorixDev@users.noreply.github.com> Date: Fri, 22 Aug 2025 15:07:01 -0700 Subject: [PATCH] Improve patch. (#359) --- src/equicordplugins/questify/index.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/equicordplugins/questify/index.tsx b/src/equicordplugins/questify/index.tsx index 6d619ad19..fd5558b2c 100644 --- a/src/equicordplugins/questify/index.tsx +++ b/src/equicordplugins/questify/index.tsx @@ -1066,16 +1066,12 @@ export default definePlugin({ match: /(START_QUEST_CTA.{0,400}?disabled:)(!0)/, replace: "$1$self.shouldDisableQuestAcceptedButton(arguments[0].quest)??$2" }, - { - // When the Quest Accepted button which has been enabled again by the above patch is - // clicked, resume the automatic completion of the Quest and disable the button again. - match: /(START_QUEST_CTA.*?,{variant:"secondary",)/, - replace: "$1onClick:()=>{$self.processQuestForAutoComplete(arguments[0].quest)},", - }, { // The "Quest Accepted" text is changed to "Resume" if the Quest is in progress but not active. + // When the Quest Accepted button which has been enabled again by the above patch is clicked, + // resume the automatic completion of the Quest and disable the button again. match: /(\i.intl.string\(\i.\i#{intl::QUEST_ACCEPTED}\))/, - replace: "$self.getQuestAcceptedButtonText(arguments[0].quest)??$1" + replace: "$self.getQuestAcceptedButtonText(arguments[0].quest)??$1,onClick:()=>{$self.processQuestForAutoComplete(arguments[0].quest)}" } ] },