mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 06:39:25 +08:00
add: skip commission notice check at campaign when do not run commission to avoid recursive calls between tasks
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user