Allow bo and bc for weapon switch (#373)
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user