From 8c5d5163002e4e20cfe88ecc03feb2a670048e4b Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Fri, 19 Jul 2024 15:27:54 +0800 Subject: [PATCH] Fix: use_fuel() didn't exit if fuel exhausted --- tasks/combat/fuel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/combat/fuel.py b/tasks/combat/fuel.py index 12a494a70..4e86012ba 100644 --- a/tasks/combat/fuel.py +++ b/tasks/combat/fuel.py @@ -189,6 +189,7 @@ class Fuel(UI): if use <= 0: logger.info("Fuel remain is under the reserve threshold, stop using fuel") self._fuel_cancel() + return False skip_first_screenshot = True while 1: