From 1d14c7cb72079e90d4780b3b72dd316f2d2b1e26 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Thu, 2 Nov 2023 01:29:11 +0800 Subject: [PATCH] Fix: Retry detection on world 0 --- tasks/rogue/entry/entry.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/rogue/entry/entry.py b/tasks/rogue/entry/entry.py index 959148721..9094a826c 100644 --- a/tasks/rogue/entry/entry.py +++ b/tasks/rogue/entry/entry.py @@ -110,9 +110,11 @@ class RogueEntry(DungeonUI, RogueRewardHandler, RoguePathHandler, RouteBase): if self.is_page_rogue_main() \ and self.image_color_count(OCR_WORLD, color=(255, 255, 255), threshold=221, count=50): - # End current = ocr.ocr_single_line(self.device.image) - if current and current == world: + if not current: + continue + # End + if current == world: logger.info(f'At world {world}') break # Click