Fixed bug that was present in the release
This commit is contained in:
@@ -139,17 +139,6 @@ local function SetHealthStatusForBodyPart(part_data, part_name, player)
|
|||||||
if (not player:HasTrait("Insensitive")) and ZombRand(1, 11) > 5 then
|
if (not player:HasTrait("Insensitive")) and ZombRand(1, 11) > 5 then
|
||||||
player:getTraits():add("Insensitive")
|
player:getTraits():add("Insensitive")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- if the player gets attacked and damaged in a cut area we have to reset it here since it doesn't make any sense
|
|
||||||
body_part:setBleeding(false);
|
|
||||||
body_part:setDeepWounded(false)
|
|
||||||
body_part:setBleedingTime(0)
|
|
||||||
body_part:setDeepWoundTime(0)
|
|
||||||
body_part:SetBitten(false)
|
|
||||||
body_part:setBiteTime(0)
|
|
||||||
part_data.is_infected = false
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user