Check for display of raidtime

This commit is contained in:
Andrew Tomaka 2015-04-10 18:18:55 -04:00
parent 18219c9700
commit c5765c8d7a

14
bot.js
View file

@ -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;
} }
} }