From d27b4647cb8614320255959e46c9db90fcd7f38f Mon Sep 17 00:00:00 2001 From: 0O0o0oOoO00 <11174151+0o0o0oooo00@users.noreply.github.com> Date: Sat, 21 Mar 2026 20:39:14 +0800 Subject: [PATCH] add: skip commission notice check at campaign when do not run commission to avoid recursive calls between tasks --- module/campaign/campaign_ui.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/campaign/campaign_ui.py b/module/campaign/campaign_ui.py index f2d2bf4e4..08f86f466 100644 --- a/module/campaign/campaign_ui.py +++ b/module/campaign/campaign_ui.py @@ -395,3 +395,11 @@ class CampaignUI(MapOperation, CampaignEvent, CampaignOcr): bool: If any commission finished. """ return self.appear(CAMPAIGN_CHECK, offset=(20, 20)) and self.appear(COMMISSION_NOTICE_AT_CAMPAIGN) + + +class CampaignUI(CampaignUI): + def commission_notice_show_at_campaign(self): + if self.config.full_config.Commission_Commission_DoNotRun: + return False + + return super().commission_notice_show_at_campaign() \ No newline at end of file