From 2feeec0d7f252209c48a79760d2dc129e5e80655 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Tue, 28 Jan 2020 19:12:38 -0600 Subject: [PATCH] Medical AI - Block healing when handcuffed (#7493) --- addons/medical_ai/functions/fnc_isSafe.sqf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/medical_ai/functions/fnc_isSafe.sqf b/addons/medical_ai/functions/fnc_isSafe.sqf index b18adbdc1c..3c6c9f5dca 100644 --- a/addons/medical_ai/functions/fnc_isSafe.sqf +++ b/addons/medical_ai/functions/fnc_isSafe.sqf @@ -4,7 +4,7 @@ * Checks if a unit is currently considered safe enough to treat itself. * * Arguments: - * None + * Unit * * Return Value: * Is unit safe enough @@ -15,4 +15,6 @@ * Public: No */ -(getSuppression _this == 0) && {CBA_missionTime - (_this getVariable [QGVAR(lastFired), -30]) > 30} +(getSuppression _this == 0) +&& {CBA_missionTime - (_this getVariable [QGVAR(lastFired), -30]) > 30} +&& {!(_this getVariable [QEGVAR(captives,isHandcuffed), false])}