Merge pull request #395 from hydroflame/prevent-raid-fail

Prevent doing blade raids when commsEst is zero
This commit is contained in:
danielyxie 2018-08-02 10:36:10 -04:00 committed by GitHub
commit 1c927c53cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1094,6 +1094,7 @@ Bladeburner.prototype.startAction = function(actionId) {
throw new Error ("Failed to get Operation Object for: " + actionId.name);
}
if (action.count < 1) {return this.resetAction();}
if (actionId.name === "Raid" && this.getCurrentCity().commsEst === 0) {return this.resetAction();}
this.actionTimeToComplete = action.getActionTime(this);
} catch(e) {
exceptionAlert(e);