From a41b7028c4f7078ceb5e8ef8614230dd6b9e3c29 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 15 Apr 2015 18:39:53 -0400 Subject: [PATCH] account for change to soldier display --- public/bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/bot.js b/public/bot.js index f942e83..17b9a12 100644 --- a/public/bot.js +++ b/public/bot.js @@ -199,9 +199,9 @@ function internalRaidRefreshing() { } function haveSoldiers() { - if(convertToNumber($('tr[name="knight"] > .owned').text()) == 0) { + if(convertToNumber($('tr[name="knight"]').find('span[name="owned"]').text()) == 0) { return false; - } else if(convertToNumber($('tr[name="advknight"] > .owned').text()) == 0) { + } else if(convertToNumber($('tr[name="advknight"]').find('span[name="owned"]').text()) == 0) { return false; } else { return true;