From 1e18c251ab2ffda1b452e920084c00f14ed319f1 Mon Sep 17 00:00:00 2001 From: weirj2016-ai <282596331+weirj2016-ai@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:18:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=93=E9=A6=86=E5=BC=80=E5=90=AF=E5=B0=9D?= =?UTF-8?q?=E8=AF=95=E7=A7=BB=E5=87=BA=E6=9F=A5=E6=89=BE=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/Dokan/script_task.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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