Check for display of raidtime
This commit is contained in:
parent
18219c9700
commit
c5765c8d7a
1 changed files with 11 additions and 3 deletions
14
bot.js
14
bot.js
|
@ -107,10 +107,18 @@ function botFillIn(selector, text) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function raidRefreshing() {
|
function raidRefreshing() {
|
||||||
if($('span[name="raidtime"]').text().trim() == "" || $('span[name="raidtime"]').text().trim() == "0 second(s) until you can raid again") {
|
if($('span[name="raidtime"]').css('display') == 'none') {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
return true;
|
|
||||||
|
switch($('span[name="raidtime"]').text().trim()) {
|
||||||
|
case '':
|
||||||
|
case '0 second(s) until you can raid again':
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue