ryland 2 лет назад
Родитель
Сommit
f3d5e5127b
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      tasks/Exploration/solo.py

+ 6 - 0
tasks/Exploration/solo.py

@@ -193,6 +193,9 @@ class SoloExploration(BaseExploration):
                         logger.warning('Exit team')
                         logger.warning('Exit team')
                         self.quit_explore()
                         self.quit_explore()
                         continue
                         continue
+                else:
+                    logger.warning('Team emoji appear again, clear friend_leave_timer')
+                    friend_leave_timer = Timer(10)
                 # boss
                 # boss
                 if self.appear(self.I_BOSS_BATTLE_BUTTON):
                 if self.appear(self.I_BOSS_BATTLE_BUTTON):
                     if self.fire(self.I_BOSS_BATTLE_BUTTON):
                     if self.fire(self.I_BOSS_BATTLE_BUTTON):
@@ -277,6 +280,9 @@ class SoloExploration(BaseExploration):
                         wait_timer = Timer(50)
                         wait_timer = Timer(50)
                         wait_timer.start()
                         wait_timer.start()
                         continue
                         continue
+                else:
+                    logger.warning('Team emoji appear again, clear friend_leave_timer')
+                    friend_leave_timer = Timer(10)
             #
             #
             elif scene == Scene.BATTLE_PREPARE or scene == Scene.BATTLE_FIGHTING:
             elif scene == Scene.BATTLE_PREPARE or scene == Scene.BATTLE_FIGHTING:
                 self.check_take_over_battle(is_screenshot=False, config=self._config.general_battle_config)
                 self.check_take_over_battle(is_screenshot=False, config=self._config.general_battle_config)