From e06c4c1558ec75dabe3fabb7aaa7d730dc2d8cdc Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 14 Apr 2015 13:15:56 -0400 Subject: [PATCH] Actually prevent random fighting on toggle --- bot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.js b/bot.js index b6c14f5..d1aaf89 100644 --- a/bot.js +++ b/bot.js @@ -68,12 +68,12 @@ function mainLoop() { } } else { //RANDOM BOSS - if(randomBossRefreshing() === true && botFightingRandomBoss === true && botFightingGlobalBoss === false && haveSoldiers() && botFightRandom === true) { + if(randomBossRefreshing() === true && botFightingRandomBoss === true && botFightingGlobalBoss === false && haveSoldiers()) { botFightingRandomBoss = false; - } else if(randomBossRefreshing() === false && botFightingRandomBoss === false) { + } else if(randomBossRefreshing() === false && botFightingRandomBoss === false && botFightRandom === true) { clickSelector('#randomBossPortal a'); botFightingRandomBoss = true; - } else if(botTimestamp() > botLastRandom + 180) { + } else if(botTimestamp() > botLastRandom + 180 && botFightRandom === true) { clickSelector('#randomBossPortal a'); botFightingRandomBoss = true; }