API FIX:#3732 Cannot assign two sleeve on "Take on contracts" regardless of contract type.

ns.sleeve.setToBladeburnerAction() was not testing the contract value.
This commit is contained in:
borisflagell 2022-05-24 15:38:05 +02:00
parent cb4fd4cf90
commit 0abd760d35

@ -332,7 +332,11 @@ export function NetscriptSleeve(player: IPlayer): InternalAPI<ISleeve> {
continue;
}
const other = player.sleeves[i];
if (other.currentTask === SleeveTaskType.Bladeburner && other.bbAction === action) {
if (
other.currentTask === SleeveTaskType.Bladeburner &&
other.bbAction === action &&
other.bbContract === contract
) {
throw ctx.helper.makeRuntimeErrorMsg(
`Sleeve ${sleeveNumber} cannot take of contracts because Sleeve ${i} is already performing that action.`,
);