From 89fd54698be8b1a98383978985193d9cd1751d7a Mon Sep 17 00:00:00 2001 From: nickofolas Date: Tue, 18 Jan 2022 08:20:58 -0600 Subject: [PATCH] Fix ns.setFocus --- src/NetscriptFunctions/Singularity.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NetscriptFunctions/Singularity.ts b/src/NetscriptFunctions/Singularity.ts index c2c5c60aa..0032cdb71 100644 --- a/src/NetscriptFunctions/Singularity.ts +++ b/src/NetscriptFunctions/Singularity.ts @@ -653,7 +653,9 @@ export function NetscriptSingularity( !( player.workType == CONSTANTS.WorkTypeFaction || player.workType == CONSTANTS.WorkTypeCompany || - player.workType == CONSTANTS.WorkTypeCompanyPartTime + player.workType == CONSTANTS.WorkTypeCompanyPartTime || + player.workType == CONSTANTS.WorkTypeCreateProgram || + player.workType == CONSTANTS.WorkTypeStudyClass ) ) { throw helper.makeRuntimeErrorMsg("setFocus", "Cannot change focus for current job");