diff --git a/src/template_finder.py b/src/template_finder.py index 08e676870..a95fbde78 100644 --- a/src/template_finder.py +++ b/src/template_finder.py @@ -243,7 +243,7 @@ def search_all( match = _single_template_match(template, img, roi, color_match, use_grayscale) if (ind_found := match.score >= threshold): matches.append(match) - # img = mask_by_roi(img, match.region, "inverse") + img = mask_by_roi(img, match.region, "inverse") any_found |= ind_found if not any_found: break diff --git a/src/ui/skills.py b/src/ui/skills.py index bfca89403..cf3ccb761 100644 --- a/src/ui/skills.py +++ b/src/ui/skills.py @@ -4,7 +4,6 @@ import cv2 import time import numpy as np -from utils import hotkeys from utils.misc import cut_roi, color_filter, wait from screen import grab from config import Config @@ -216,6 +215,7 @@ def has_tps() -> bool: """ :return: Returns True if botty has town portals available. False otherwise """ + from utils import hotkeys if SkillName.TownPortal in hotkeys.right_skill_key_map: keyboard.send(hotkeys.right_skill_map[SkillName.TownPortal]) if not (tps_remain := wait_until_visible(ScreenObjects.TownPortalSkill, timeout=4).valid):