Toggle global boss fight

This commit is contained in:
Andrew Tomaka 2015-04-11 00:14:34 -04:00
parent 15adfcd4e8
commit be0b329a60

11
bot.js
View file

@ -5,6 +5,7 @@ var botRaiding = false;
var botFightingRandomBoss = false;
var botFightingGlobalBoss = false;
var botBuySlimes = false;
var botFightGlobal = true;
var botRaidTarget = null;
var botGlobalBossTimer;
@ -223,6 +224,16 @@ function botToggleSlimes() {
}
}
function botToggleGlobal() {
if(botFightGlobal) {
console.log('Stopping global fighting');
botFightGlobal = false;
} else {
console.log('Starting global fighting');
botFightGlobal = true;
}
}
function botSetTarget(username) {
botRaidTarget = username;
}