mirror of
https://github.com/Luzifer/automate-cookie-clicker.git
synced 2024-12-23 02:31:18 +00:00
Don't try to level dragon above max
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8b6867a923
commit
1b50491d0d
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Automate CookieClicker
|
// @name Automate CookieClicker
|
||||||
// @namespace https://luzifer.io/
|
// @namespace https://luzifer.io/
|
||||||
// @version 0.15.0
|
// @version 0.15.1
|
||||||
// @description Automate everything!
|
// @description Automate everything!
|
||||||
// @author Knut Ahlers <knut@ahlers.me>
|
// @author Knut Ahlers <knut@ahlers.me>
|
||||||
// @source https://github.com/Luzifer/automate-cookie-clicker
|
// @source https://github.com/Luzifer/automate-cookie-clicker
|
||||||
|
@ -105,7 +105,7 @@ function installHelper() {
|
||||||
|
|
||||||
function manageDragon() {
|
function manageDragon() {
|
||||||
// Upgrade dragon if possible
|
// Upgrade dragon if possible
|
||||||
if (Game.dragonLevels[Game.dragonLevel].cost()) {
|
if (Game.dragonLevels[Game.dragonLevel].cost() && Game.dragonLevel < Game.dragonLevels.length - 1) {
|
||||||
Game.UpgradeDragon()
|
Game.UpgradeDragon()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue