Fixed Bladeburner bug where exception would be thrown if Blackop was created outside of Bladeburner UI

This commit is contained in:
danielyxie
2018-05-18 22:15:58 -05:00
parent 7d149f5f7b
commit f403bd14b7
3 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -1202,7 +1202,9 @@ Bladeburner.prototype.completeAction = function() {
return hackWorldDaemon(Player.bitNodeN);
}
this.createActionAndSkillsContent();
if (Engine.currentPage === Engine.Page.Bladeburner) {
this.createActionAndSkillsContent();
}
if (this.logging.blackops) {
this.log(action.name + " successful! Gained " + formatNumber(rankGain, 1) + " rank");