fix bladeburner action cancel

This commit is contained in:
Olivier Gagnon
2021-11-12 16:54:34 -05:00
parent 0eec018faf
commit f5d6132dfc
6 changed files with 13 additions and 10 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import { IBladeburner } from "../IBladeburner";
import { BlackOperation } from "../BlackOperation";
import { use } from "../../ui/Context";
import Button from "@mui/material/Button";
import { AugmentationNames } from "../../Augmentation/data/AugmentationNames";
interface IProps {
bladeburner: IBladeburner;
@@ -32,7 +33,7 @@ export function StartButton(props: IProps): React.ReactElement {
if (disabled) return;
props.bladeburner.action.type = props.type;
props.bladeburner.action.name = props.name;
player.singularityStopWork();
if (!player.hasAugmentation(AugmentationNames.BladesSimulacrum, true)) player.singularityStopWork();
props.bladeburner.startAction(player, props.bladeburner.action);
props.rerender();
}