ryland 1 год назад
Родитель
Сommit
f99933489d
2 измененных файлов с 3 добавлено и 0 удалено
  1. 2 0
      tasks/Orochi/script_task.py
  2. 1 0
      tasks/Restart/script_task.py

+ 2 - 0
tasks/Orochi/script_task.py

@@ -131,6 +131,8 @@ class ScriptTask(GeneralBattle, GeneralInvite, GeneralBuff, GeneralRoom, GameUi,
         self.orochi_enter()
         layer = self.config.orochi.orochi_config.layer
         self.check_layer(layer)
+        # https://github.com/runhey/OnmyojiAutoScript/issues/592
+        self.config.orochi.general_battle_config.lock_team_enable = True
         self.check_lock(self.config.orochi.general_battle_config.lock_team_enable)
         # 创建队伍
         logger.info('Create team')

+ 1 - 0
tasks/Restart/script_task.py

@@ -56,6 +56,7 @@ class ScriptTask(LoginHandler):
         for task in self.config.pending_task:
             print(task.command)
             self.set_next_run(task=task.command, target=datetime_now.replace(hour=9, minute=0, second=0, microsecond=0))
+        self.set_next_run(task='Restart', success=True, finish=True, server=True)
         return True