This commit is contained in:
Andrew Tomaka 2016-05-24 11:56:51 -04:00
parent a816a456bc
commit 4bc38236d0

View file

@ -99,10 +99,8 @@ function mainLoop() {
if(haveSlimes(SAFE_SOLDIER_COUNT) === false && botFightRandom === true && botPurchasing === false) { if(haveSlimes(SAFE_SOLDIER_COUNT) === false && botFightRandom === true && botPurchasing === false) {
setBotToPurchasing(); setBotToPurchasing();
clickSelector('button[name="buyx-knight"]'); clickSelector('button[name="buyx-knight"]');
botPurchasingTimer = setInterval(function() { botFillIn('input[name="x_amount"]', SAFE_SOLDIER_COUNT);
botFillIn('input[name="x_amount"]', SAFE_SOLDIER_COUNT); clickButton("Buy");
clickButton("Yes");
}, 250);
} }
if(haveCreepers(SAFE_SOLDIER_COUNT) === false && botFightRandom === true && botPurchasing === false) { if(haveCreepers(SAFE_SOLDIER_COUNT) === false && botFightRandom === true && botPurchasing === false) {