From 2657be9878339ea966fd9b4632f8319facee72f1 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sat, 10 Aug 2024 22:36:33 +0800 Subject: [PATCH] Fix: Clear stuck record before and after combat --- tasks/combat/combat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/combat/combat.py b/tasks/combat/combat.py index 538aff780..9c14ae0c2 100644 --- a/tasks/combat/combat.py +++ b/tasks/combat/combat.py @@ -163,6 +163,8 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo skip_first_screenshot = True is_executing = True self.combat_state_reset() + self.device.stuck_record_clear() + self.device.click_record_clear() self.device.screenshot_interval_set('combat') while 1: if skip_first_screenshot: @@ -196,6 +198,8 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo if self.handle_battle_pass_notification(): continue + self.device.stuck_record_clear() + self.device.click_record_clear() self.device.screenshot_interval_set() def _combat_can_again(self) -> bool: