Make sure we wait for lobby to open

This commit is contained in:
Andrew Tomaka 2016-05-31 11:06:13 -04:00
parent e43db59f83
commit 86fd720821

View file

@ -119,7 +119,9 @@ function mainLoop() {
clearInterval(botGlobalBossTimer);
botFightingGlobalBoss = false;
} else if(globalBossRefreshing() === false && botFightingGlobalBoss === false && botFightGlobal === true) {
setTimeout(function() {
clickSelector('span[name="timeRemaining"]:contains("JOIN") a');
}, 4000);
botGlobalBossTimer = setInterval(fightGlobalBoss, 250);
botFightingGlobalBoss = true;
}