diff --git a/addons/medical_status/functions/fnc_isInStableCondition.sqf b/addons/medical_status/functions/fnc_isInStableCondition.sqf index 882f1b3d463..21739416054 100644 --- a/addons/medical_status/functions/fnc_isInStableCondition.sqf +++ b/addons/medical_status/functions/fnc_isInStableCondition.sqf @@ -1,6 +1,6 @@ #include "script_component.hpp" /* - * Author: Glowbal, anden3 + * Author: Glowbal, anden3, dgibso29 * Check if a unit is in a stable condition, needed for PersonalAidKit treatment * * Arguments: @@ -30,9 +30,9 @@ if (EGVAR(medical_treatment,allowPainPAK) == 0 && { IS_IN_PAIN(_unit) }) exitWit if (EGVAR(medical_treatment,allowFracturesPAK) == 0 && { !(GET_FRACTURES(_unit) isEqualTo []) }) exitWith {false}; // Require at least bandaged wounds. -if (EGVAR(medical_treatment,requiredWoundStatePAK) >= 1 && { !(GET_OPEN_WOUNDS(_unit) isEqualTo []) }) exitWith {false}; +if (EGVAR(medical_treatment,requiredWoundStatePAK) == 1 && { !(count GET_OPEN_WOUNDS(_unit) == (count GET_BANDAGED_WOUNDS(_unit) + count GET_STITCHED_WOUNDS(_unit))) }) exitWith {false}; // Require stitched wounds. -if (EGVAR(medical_treatment,requiredWoundStatePAK) == 2 && { !(GET_BANDAGED_WOUNDS(_unit) isEqualTo []) }) exitWith {false}; +if (EGVAR(medical_treatment,requiredWoundStatePAK) == 2 && { !(count GET_OPEN_WOUNDS(_unit) == count GET_STITCHED_WOUNDS(_unit)) }) exitWith {false}; true