From ec96cdf12c9ccfca5e0502bc81e91ffd5fedc55e Mon Sep 17 00:00:00 2001 From: Grim <69561145+LinkIsGrim@users.noreply.github.com> Date: Sat, 23 Sep 2023 12:59:10 -0400 Subject: [PATCH] Medical Treatment - Fix clearing trauma after stitch with multiple wounds (#9420) fix clear trauma on stitch --- addons/medical_treatment/functions/fnc_surgicalKitProgress.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/medical_treatment/functions/fnc_surgicalKitProgress.sqf b/addons/medical_treatment/functions/fnc_surgicalKitProgress.sqf index c099d04011..477c8101f5 100644 --- a/addons/medical_treatment/functions/fnc_surgicalKitProgress.sqf +++ b/addons/medical_treatment/functions/fnc_surgicalKitProgress.sqf @@ -56,7 +56,7 @@ if (GVAR(clearTrauma) == 1) then { private _partIndex = ALL_BODY_PARTS find _bodyPart; TRACE_2("clearTrauma - clearing trauma after stitching",_bodyPart,_treatedWound); private _bodyPartDamage = _patient getVariable [QEGVAR(medical,bodyPartDamage), []]; - _bodyPartDamage set [_partIndex, (_bodyPartDamage select _partIndex) - _treatedDamageOf]; + _bodyPartDamage set [_partIndex, (_bodyPartDamage select _partIndex) - (_treatedDamageOf * _treatedAmountOf)]; _patient setVariable [QEGVAR(medical,bodyPartDamage), _bodyPartDamage, true]; TRACE_2("clearTrauma - healed damage",_bodyPart,_treatedDamageOf);