diff --git a/pyclashbot/memu/client.py b/pyclashbot/memu/client.py index 85411d88d..945297ba7 100644 --- a/pyclashbot/memu/client.py +++ b/pyclashbot/memu/client.py @@ -121,7 +121,7 @@ def click(x, y, duration=1, max_attempts=3): duration (int, optional): Duration of the click. Defaults to 1. max_attempts (int, optional): Maximum amount of attempts to click the given coordinate. Defaults to 3. Set to less than 1 for infinite attempts. """ - origin = ahk.mouse_position() + origin = ahk.mouse_position duration = min(10, duration) # 10 seconds max (ahk limitation) speed = duration * 10 # speed for ahk (0-100)