mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Retry if no characters detected
This commit is contained in:
parent
5c5181f1d2
commit
59ea801b21
@ -60,6 +60,8 @@ class CharacterSwitch(UI):
|
||||
self.character_current = self._convert_selected_to_character(self._update_current_character())
|
||||
|
||||
# Must contain first character
|
||||
if not buttons:
|
||||
continue
|
||||
expected_peaks = np.array([201, 279, 357, 435])
|
||||
if buttons[0].area[3] < expected_peaks[0]:
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user