account for change to soldier display

This commit is contained in:
Andrew Tomaka 2015-04-15 18:39:53 -04:00
parent f561b5f2cb
commit a41b7028c4

View file

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