Make sure we don't stop attacking random boss
This commit is contained in:
parent
c876c8be4b
commit
dc388c4ae7
1 changed files with 5 additions and 0 deletions
5
bot.js
5
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
|
||||
|
|
Loading…
Reference in a new issue