Actually prevent random fighting on toggle

This commit is contained in:
Andrew Tomaka 2015-04-14 13:15:56 -04:00
parent 41f81d2e5e
commit e06c4c1558

6
bot.js
View file

@ -68,12 +68,12 @@ function mainLoop() {
} }
} else { } else {
//RANDOM BOSS //RANDOM BOSS
if(randomBossRefreshing() === true && botFightingRandomBoss === true && botFightingGlobalBoss === false && haveSoldiers() && botFightRandom === true) { if(randomBossRefreshing() === true && botFightingRandomBoss === true && botFightingGlobalBoss === false && haveSoldiers()) {
botFightingRandomBoss = false; botFightingRandomBoss = false;
} else if(randomBossRefreshing() === false && botFightingRandomBoss === false) { } else if(randomBossRefreshing() === false && botFightingRandomBoss === false && botFightRandom === true) {
clickSelector('#randomBossPortal a'); clickSelector('#randomBossPortal a');
botFightingRandomBoss = true; botFightingRandomBoss = true;
} else if(botTimestamp() > botLastRandom + 180) { } else if(botTimestamp() > botLastRandom + 180 && botFightRandom === true) {
clickSelector('#randomBossPortal a'); clickSelector('#randomBossPortal a');
botFightingRandomBoss = true; botFightingRandomBoss = true;
} }