From 5db3b5d57c078ab0aaf0eac81bf7013c948a020b Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Tue, 15 Dec 2020 16:22:28 +0800 Subject: [PATCH] Fix: Loop in reward if ENABLE_REWARD disabled and commission notice found (#260) --- module/campaign/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/campaign/run.py b/module/campaign/run.py index c6bf9db85..464e28112 100644 --- a/module/campaign/run.py +++ b/module/campaign/run.py @@ -198,7 +198,8 @@ class CampaignRun(Reward): name=self.stage, mode=self.config.CAMPAIGN_MODE if self.config.COMMAND.lower() == 'main' else 'normal' ) - if self.commission_notice_show_at_campaign(): + if self.config.ENABLE_REWARD and self.commission_notice_show_at_campaign(): + logger.info('Commission notice found') if self.reward(): self.campaign.fleet_checked_reset() continue