Ver código fonte

修复道馆首次攻击后的任务间隔

weirj2016-ai 1 mês atrás
pai
commit
6360d6a947
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      tasks/Dokan/script_task.py

+ 1 - 1
tasks/Dokan/script_task.py

@@ -950,7 +950,7 @@ class ScriptTask(ExtendGreenMark, GameUi, SwitchSoul, DokanSceneDetector):
             #   # 本来以为server为False(finish=True,success=False,server=False)就不会变成明天,谁知道还是变成明天
             #   # 逻辑太复杂,不如直接target,简单点
             if self.config.dokan.attack_count_config.remain_attack_count == 1 and self.config.dokan.attack_count_config.daily_attack_count == 2:
-                self.set_next_run(task="Dokan", target=now + self.config.dokan.scheduler.failure_interval)
+                self.set_next_run(task="Dokan", target=now + self.config.dokan.scheduler.failure_interval, server=False)
                 return
             # 其余情况当作成功
             self.set_next_run(task="Dokan", finish=False, success=True, server=True)