mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 10:01:10 +00:00
Fix: Reversed condition is used
This commit is contained in:
parent
d783aa23d9
commit
8e45fc54db
@ -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]:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user