diff --git a/tasks/RyouToppa/script_task.py b/tasks/RyouToppa/script_task.py index 34f58098..9be86166 100644 --- a/tasks/RyouToppa/script_task.py +++ b/tasks/RyouToppa/script_task.py @@ -101,6 +101,7 @@ def run(self): self.ui_goto(page_kekkai_toppa) ryou_toppa_start_flag = True ryou_toppa_success_penetration = False + ryou_toppa_admin_flag = False # 点击突破 while 1: self.screenshot() @@ -117,6 +118,7 @@ def run(self): # 出现选择寮突说明寮突未开 elif self.appear(self.I_SELECT_RYOU_BUTTON, threshold=0.8): ryou_toppa_start_flag = False + ryou_toppa_admin_flag = True break # 出现晴明说明寮突未开 elif self.appear(self.I_NO_SELECT_RYOU, threshold=0.8): @@ -131,7 +133,7 @@ def run(self): logger.attr('ryou_toppa_success_penetration', ryou_toppa_success_penetration) # 寮突未开 并且有权限, 开开寮突,没有权限则标记失败 if not ryou_toppa_start_flag: - if ryou_config.raid_config.ryou_access: + if ryou_config.raid_config.ryou_access and ryou_toppa_admin_flag: # 作为寮管理,开启今天的寮突 logger.info("As the manager of the ryou, try to start ryou toppa.") self.start_ryou_toppa()