Fight random fix

This commit is contained in:
Andrew Tomaka 2015-04-14 11:29:57 -04:00
parent 58cec5ebf2
commit 41f81d2e5e

4
bot.js
View file

@ -68,7 +68,7 @@ function mainLoop() {
}
} else {
//RANDOM BOSS
if(randomBossRefreshing() === true && botFightingRandomBoss === true && botFightingGlobalBoss === false && haveSoldiers()) {
if(randomBossRefreshing() === true && botFightingRandomBoss === true && botFightingGlobalBoss === false && haveSoldiers() && botFightRandom === true) {
botFightingRandomBoss = false;
} else if(randomBossRefreshing() === false && botFightingRandomBoss === false) {
clickSelector('#randomBossPortal a');
@ -100,7 +100,7 @@ function mainLoop() {
}
//RAID
if(raidRefreshing() === false && haveRaidTarget() === true && botFightRandom === true && internalRaidRefreshing() === false) {
if(raidRefreshing() === false && haveRaidTarget() === true && internalRaidRefreshing() === false) {
clickSelector('button[name="raid_button"]');
botFillIn('input[name="raid_user"]', botRaidTarget);
botRaiding = true;