mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Handle event options disabled
This commit is contained in:
parent
312cc6f617
commit
1751001499
@ -26,6 +26,11 @@ class RogueEvent(RogueUI):
|
||||
|
||||
def handle_event_option(self):
|
||||
options = CHOOSE_OPTION.match_multi_template(self.device.image)
|
||||
# Check color also, option with requirements might be disabled
|
||||
options = [
|
||||
option for option in options
|
||||
if self.image_color_count(option.area, color=(181, 162, 126), threshold=221, count=25)
|
||||
]
|
||||
count = len(options)
|
||||
if count == 0:
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user