prevent raid when est is zero

This commit is contained in:
Olivier Gagnon 2018-07-27 20:58:52 -04:00
parent 47134a9640
commit ba7ebad399

@ -1093,6 +1093,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);