From 14e3a9a73a61f4bf0ea4ed30835e2965fd398d54 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sat, 24 Feb 2024 00:44:56 +0800 Subject: [PATCH] Fix: Handle character died (#317) --- tasks/combat/combat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/combat/combat.py b/tasks/combat/combat.py index d14e4fc39..ab97419ce 100644 --- a/tasks/combat/combat.py +++ b/tasks/combat/combat.py @@ -265,8 +265,12 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo self.device.click(COMBAT_EXIT) self.interval_reset(COMBAT_AGAIN) continue + # Dropped light cone from weekly if self.handle_get_light_cone(): continue + # Having any character died + if self.handle_popup_confirm(): + continue def combat_exit(self, skip_first_screenshot=True): """