diff --git a/bot.js b/bot.js index 4c37d34..ac23246 100644 --- a/bot.js +++ b/bot.js @@ -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!':