9 lines
269 B
Python
9 lines
269 B
Python
import cv2 as cv
|
|
|
|
class Spell:
|
|
def __init__(self, monitor, path, cooldown) -> None:
|
|
self.monitor = monitor
|
|
self.spellIcon = cv.imread("assets/spells/" + path, cv.IMREAD_GRAYSCALE)
|
|
|
|
def click():
|
|
self.monitor.findMatchAndClickIfAvailable(self.spellIcon) |