From dc388c4ae7c421dcaad497331b85fa5a72e1ec9c Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 13 Apr 2015 19:15:31 -0400 Subject: [PATCH] Make sure we don't stop attacking random boss --- bot.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bot.js b/bot.js index ceb10ea..08b52c2 100644 --- a/bot.js +++ b/bot.js @@ -8,6 +8,7 @@ var botFightingGlobalBoss = false; var botBuySlimes = false; var botFightGlobal = true; var botRaidTarget = null; +var botLastRandom; function mainLoop() { if($('#popup').is(':visible')) { @@ -20,6 +21,7 @@ function mainLoop() { break; case 'SUMMON BOSS': clickButton('Summon Boss'); + botLastRandom = botTimestamp(); break; case 'Are you sure?': clickButton('Activate Item'); @@ -63,6 +65,9 @@ function mainLoop() { } else if(randomBossRefreshing() === false && botFightingRandomBoss === false) { clickSelector('#randomBossPortal a'); botFightingRandomBoss = true; + } else if(botTimestamp() > botLastRandom + 180) { + clickSelector('#randomBossPortal a'); + botFightingRandomBoss = true; } //GLOBAL BOSS