Fix: Reversed condition is used

This commit is contained in:
LmeSzinc 2024-01-02 04:13:40 +08:00
parent d783aa23d9
commit 8e45fc54db
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ class DungeonEvent(UI):
ocr = DoubleEventOcr(OCR_DOUBLE_EVENT_REMAIN_AT_COMBAT)
for row in ocr.detect_and_ocr(self.device.image):
if ocr.is_format_matched(row.ocr_text):
if not ocr.is_format_matched(row.ocr_text):
continue
remain, _, total = ocr.format_result(row.ocr_text)
if total in [3, 12]:

View File

@ -86,7 +86,7 @@ class DungeonState(UI):
continue
if row.ocr_text == '+':
continue
if ocr.is_format_matched(row.ocr_text):
if not ocr.is_format_matched(row.ocr_text):
continue
data = ocr.format_result(row.ocr_text)
if data[2] == self.config.stored.TrailblazePower.FIXED_TOTAL: