diff --git a/addons/medical/functions/fnc_canTreat.sqf b/addons/medical/functions/fnc_canTreat.sqf index efbba0e9a1..2a3697ac90 100644 --- a/addons/medical/functions/fnc_canTreat.sqf +++ b/addons/medical/functions/fnc_canTreat.sqf @@ -22,7 +22,10 @@ _target = _this select 1; _selectionName = _this select 2; _className = _this select 3; -_config = (ConfigFile >> "ACE_Medical_Treatments" >> _className); +_config = (ConfigFile >> "ACE_Medical_Treatments" >> "Basic" >> _className); +if (GVAR(level)>=1) then { + _config = (ConfigFile >> "ACE_Medical_Treatments" >> "Advanced" >> _className); +}; if !(isClass _config) exitwith {false}; _availableLevels = getArray (_config >> "availableLevels"); diff --git a/addons/medical/functions/fnc_treatment.sqf b/addons/medical/functions/fnc_treatment.sqf index 8f173cc27b..39760578a0 100644 --- a/addons/medical/functions/fnc_treatment.sqf +++ b/addons/medical/functions/fnc_treatment.sqf @@ -22,7 +22,10 @@ _target = _this select 1; _selectionName = _this select 2; _className = _this select 3; -_config = (ConfigFile >> "ACE_Medical_Treatments" >> _className); +_config = (ConfigFile >> "ACE_Medical_Treatments" >> "Basic" >> _className); +if (GVAR(level)>=1) then { + _config = (ConfigFile >> "ACE_Medical_Treatments" >> "Advanced" >> _className); +}; if !(isClass _config) exitwith {false}; _availableLevels = getArray (_config >> "availableLevels");