From 9b099fcee9fc901fe286443a6155a61e21511e9a Mon Sep 17 00:00:00 2001 From: Matthew Goff Date: Sat, 4 Aug 2018 16:52:45 -0500 Subject: [PATCH] Fix bladeburner.getActionTime returning null --- src/NetscriptFunctions.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/NetscriptFunctions.js b/src/NetscriptFunctions.js index 76b7f81d7..a5ffb6f65 100644 --- a/src/NetscriptFunctions.js +++ b/src/NetscriptFunctions.js @@ -3424,12 +3424,7 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getCurrentAction", CONSTANTS.ScriptBladeburnerApiBaseRamCost / 4); if (Player.bladeburner instanceof Bladeburner && (Player.bitNodeN === 7 || hasBladeburner2079SF)) { - let res = Player.bladeburner.getTypeAndNameFromActionId(Player.bladeburner.action); - if (res.type === "Idle" && res.name === "Idle") { - return null; - } else { - return res; - } + return Player.bladeburner.getTypeAndNameFromActionId(Player.bladeburner.action); } throw makeRuntimeRejectMsg(workerScript, "getCurrentAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7");