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

2
bot.js
View file

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