diff --git a/tasks/Dokan/script_task.py b/tasks/Dokan/script_task.py index 4e77b3cf5..0c05c8c24 100644 --- a/tasks/Dokan/script_task.py +++ b/tasks/Dokan/script_task.py @@ -91,6 +91,15 @@ def run(self): if not in_dokan: out_dokan_timer.start() self.goto_dokan_scene() + in_dokan, current_scene = self.get_current_scene(True) + + # 进入道馆寻找界面后,在主循环前仅尝试一次开启道馆 + if (in_dokan and + current_scene == DokanScene.RYOU_DOKAN_SCENE_FINDING_DOKAN and + cfg.dokan_config.try_start_dokan): + count = self.update_remain_attack_count() + if count > 0: + self.creat_dokan() # 是否已击败馆主第一阵容 first_master_killed = False @@ -140,9 +149,6 @@ def run(self): if not try_start_dokan: is_dokan_activated = False break - # 尝试建立道馆 - self.creat_dokan() - # 寻找合适道馆,找不到直接退出 if not self.find_dokan(self.config.dokan.dokan_config.find_dokan_score): is_dokan_activated = False