Only control raid if raid target set

This commit is contained in:
Andrew Tomaka 2015-04-09 14:06:34 -04:00
parent 03f7dce1c9
commit 2e3ca91401

12
bot.js
View file

@ -36,11 +36,13 @@ function mainLoop() {
}
break;
case 'Raid':
if(botRaiding) {
clickButton('Raid!');
botRaiding = false;
} else {
clickButton('Nevermind');
if(haveRaidTarget() === true) {
if(botRaiding) {
clickButton('Raid!');
botRaiding = false;
} else {
clickButton('Nevermind');
}
}
break;
case 'WHOOPS!':