Fix: Exit to COMBAT_AGAIN if fuel exhausted

This commit is contained in:
LmeSzinc 2024-07-24 01:25:12 +08:00
parent 11cefadb71
commit 19157a4266

View File

@ -147,6 +147,10 @@ class Fuel(UI):
Returns:
bool: If used
Pages:
in: COMBAT_AGAIN
out: COMBAT_AGAIN
"""
limit = self.config.stored.TrailblazePower.FIXED_TOTAL
use = (limit - current) // self.fuel_trailblaze_power
@ -173,6 +177,7 @@ class Fuel(UI):
has_fuel = True
if not has_fuel and timeout.reached():
logger.info("No fuel found")
self._fuel_cancel()
return False
if self.appear_then_click(FUEL):
has_fuel = True