From c5765c8d7a6890ffb08e0bb2acab5926d0893f96 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 10 Apr 2015 18:18:55 -0400 Subject: [PATCH] Check for display of raidtime --- bot.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/bot.js b/bot.js index 05c4fa0..68c4872 100644 --- a/bot.js +++ b/bot.js @@ -107,10 +107,18 @@ function botFillIn(selector, text) { } 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; - } 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; } }