Only control raid if raid target set
This commit is contained in:
parent
03f7dce1c9
commit
2e3ca91401
1 changed files with 7 additions and 5 deletions
12
bot.js
12
bot.js
|
@ -36,11 +36,13 @@ function mainLoop() {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'Raid':
|
case 'Raid':
|
||||||
if(botRaiding) {
|
if(haveRaidTarget() === true) {
|
||||||
clickButton('Raid!');
|
if(botRaiding) {
|
||||||
botRaiding = false;
|
clickButton('Raid!');
|
||||||
} else {
|
botRaiding = false;
|
||||||
clickButton('Nevermind');
|
} else {
|
||||||
|
clickButton('Nevermind');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'WHOOPS!':
|
case 'WHOOPS!':
|
||||||
|
|
Loading…
Reference in a new issue