mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +01:00
Merge pull request #395 from hydroflame/prevent-raid-fail
Prevent doing blade raids when commsEst is zero
This commit is contained in:
commit
1c927c53cd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user