From 339c2b06188a1c9031c063347d4a4e32200205c1 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 20 Apr 2018 07:43:43 +0200 Subject: [PATCH] Trigger way slower than game ticks Signed-off-by: Knut Ahlers --- autocookieclicker.user.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/autocookieclicker.user.js b/autocookieclicker.user.js index 454db83..5d59f29 100644 --- a/autocookieclicker.user.js +++ b/autocookieclicker.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Automate CookieClicker // @namespace https://luzifer.io/ -// @version 0.16.0 +// @version 0.16.1 // @description Automate everything! // @author Knut Ahlers // @source https://github.com/Luzifer/automate-cookie-clicker @@ -31,6 +31,11 @@ function autoClick() { } function executeAutoActions() { + if (Game.T % (Game.fps * 0.5) != 0) { + // Game logic ticks very fast, only trigger every 0.5s + return; + } + // Click all golden cookies $('.shimmer').click();