0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-06-07 09:25:34 +00:00
This commit is contained in:
firedcto@gmail.com 2024-08-25 18:23:48 +08:00
parent da552562b4
commit e03ea114ef

View File

@ -99,7 +99,10 @@ class CombatCheck:
return self.has_count_down
def check_boss(self):
current = self.boss_lv_box.crop_frame(self.frame)
if self.boss_lv_box is not None:
current = self.boss_lv_box.crop_frame(self.frame)
else:
current = None
max_val = 0
if current is not None:
res = cv2.matchTemplate(current, self.boss_lv_template, cv2.TM_CCOEFF_NORMED, mask=self.boss_lv_mask)