From 2e3ca91401d6c04c9f814b561e0cc76aa46aa331 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 9 Apr 2015 14:06:34 -0400 Subject: [PATCH] Only control raid if raid target set --- bot.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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!':