Fixed some bugs

This commit is contained in:
Pao
2023-01-14 22:31:23 +01:00
parent 3ce154079a
commit fe197cd2ff
3 changed files with 17 additions and 18 deletions

View File

@@ -35,8 +35,8 @@ function TheOnlyCure.CheckIfPlayerIsInfected(player, toc_data)
for _, v in ipairs(GetLimbsBodyPartTypes()) do
local toc_bodypart = FindTocDataPartNameFromBodyPartType(toc_data, v)
if body_damage:getBodyPart(v):bitten() and toc_bodypart ~= nil then
if toc_bodypart.is_cut then
toc_data[toc_bodypart].is_infected = true
if toc_bodypart.is_cut == false then
toc_bodypart.is_infected = true
player:transmitModData()
end