From 9babcf1fa2da76dc89099b6e96aa60cb840b96a9 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 20 Apr 2018 07:10:06 +0200 Subject: [PATCH] Fix: Current dragon level needs to be bought Signed-off-by: Knut Ahlers --- autocookieclicker.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autocookieclicker.user.js b/autocookieclicker.user.js index 9903bad..f5f3fcb 100644 --- a/autocookieclicker.user.js +++ b/autocookieclicker.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Automate CookieClicker // @namespace https://luzifer.io/ -// @version 0.14.0 +// @version 0.14.1 // @description Automate everything! // @author Knut Ahlers // @source https://github.com/Luzifer/automate-cookie-clicker @@ -54,7 +54,7 @@ function executeAutoActions() { } // Upgrade dragon if possible - if (Game.dragonLevels[Game.dragonLevel + 1].cost()) { + if (Game.dragonLevels[Game.dragonLevel].cost()) { Game.UpgradeDragon() } }