From 0d54d22ac395293027a68a4a8e4fef3afb7c7b64 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Mon, 1 Jul 2024 23:36:36 +0800 Subject: [PATCH] Opt: Slower screenshot interval during combat --- tasks/combat/combat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/combat/combat.py b/tasks/combat/combat.py index d7355e97e..a34165c95 100644 --- a/tasks/combat/combat.py +++ b/tasks/combat/combat.py @@ -160,6 +160,7 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo skip_first_screenshot = True is_executing = True self.combat_state_reset() + self.device.screenshot_interval_set('combat') while 1: if skip_first_screenshot: skip_first_screenshot = False @@ -192,6 +193,8 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo if self.handle_battle_pass_notification(): continue + self.device.screenshot_interval_set() + def _combat_can_again(self) -> bool: """ Pages: