diff --git a/assets/templates/bc.png b/assets/templates/bc.png index a8cb01e..75d578b 100644 Binary files a/assets/templates/bc.png and b/assets/templates/bc.png differ diff --git a/assets/templates/bo.png b/assets/templates/bo.png new file mode 100644 index 0000000..c310136 Binary files /dev/null and b/assets/templates/bo.png differ diff --git a/src/char/i_char.py b/src/char/i_char.py index 6914afa..c7550b6 100644 --- a/src/char/i_char.py +++ b/src/char/i_char.py @@ -164,7 +164,7 @@ class IChar: wait(0.3, 0.35) keyboard.send(self._char_config["battle_command"]) wait(0.1, 0.19) - if self._ui_manager.is_right_skill_selected(["BC"]): + if self._ui_manager.is_right_skill_selected(["BC", "BO"]): switch_sucess = True break diff --git a/src/ui/ui_manager.py b/src/ui/ui_manager.py index 345a21b..2fc63b4 100644 --- a/src/ui/ui_manager.py +++ b/src/ui/ui_manager.py @@ -73,7 +73,7 @@ class UiManager(): :return: Bool if skill is currently the selected skill on the right skill slot. """ for template in template_list: - if self._template_finder.search(template, self._screen.grab(), threshold=0.87, roi=self._config.ui_roi["skill_right"]).valid: + if self._template_finder.search(template, self._screen.grab(), threshold=0.84, roi=self._config.ui_roi["skill_right"]).valid: return True return False @@ -82,7 +82,7 @@ class UiManager(): :return: Bool if skill is currently the selected skill on the left skill slot. """ for template in template_list: - if self._template_finder.search(template, self._screen.grab(), threshold=0.87, roi=self._config.ui_roi["skill_left"]).valid: + if self._template_finder.search(template, self._screen.grab(), threshold=0.84, roi=self._config.ui_roi["skill_left"]).valid: return True return False