diff --git a/Sources/epoch_server_settings/configs/security/security_checks.h b/Sources/epoch_server_settings/configs/security/security_checks.h index 56cabdf2..d1ba1f28 100644 --- a/Sources/epoch_server_settings/configs/security/security_checks.h +++ b/Sources/epoch_server_settings/configs/security/security_checks.h @@ -30,7 +30,7 @@ class CfgSecConf resetTempGroup = "Epoch_my_tempGroup = []; Epoch_my_tempGroupUID = '';"; tempGroupUpdate = "Epoch_my_tempGroup = _this; call EPOCH_tempGroup_update;"; tempGroupUidUpdate = "Epoch_my_tempGroupUID = _this;"; - healPlayer = "{missionNamespace setVariable[format['EPOCH_player%1', _x], EPOCH_defaultVars select(EPOCH_customVars find _x)]} forEach['Temp','Hunger','Thirst','Toxicity','Stamina','BloodP','Alcohol','Radiation'];"; + healPlayer = "{[_x,(EPOCH_defaultVars select(EPOCH_customVars find _x)) - (missionnamespace getvariable format ['EPOCH_player%1',_x])] call Epoch_GiveAttributes;} foreach ['Temp','Hunger','Thirst','Toxicity','Stamina','BloodP','Alcohol','Radiation'];"; tradeComplete = "EPOCH_TRADE_COMPLETE = _this;"; };