Fixes cause I'm dum
This commit is contained in:
@@ -150,7 +150,8 @@ function AmputationHandler:execute(damagePlayer)
|
||||
CachedDataHandler.AddAmputatedLimb(username, self.limbName)
|
||||
CachedDataHandler.CalculateHighestAmputatedLimbs(username)
|
||||
|
||||
-- If the part was actually infected, heal the player
|
||||
-- TODO Check infection level!
|
||||
-- If the part was actually infected, heal the player, if they were in time
|
||||
if bodyPart:IsInfected() and not modDataHandler:getIsIgnoredPartInfected() then
|
||||
PlayerHandler.HealZombieInfection(bd, bodyPart, self.limbName, modDataHandler)
|
||||
end
|
||||
|
||||
@@ -82,9 +82,9 @@ function PlayerHandler.HealZombieInfection(bodyDamage, bodyPart, limbName, modDa
|
||||
if bodyDamage:isInfected() == false then return end
|
||||
|
||||
bodyDamage:setInfected(false)
|
||||
bodyDamage:setInfectionMortalityDuration(0)
|
||||
bodyDamage:setInfectionTime(0)
|
||||
bodyDamage:setInfectionLevel(0)
|
||||
bodyDamage:setInfectionMortalityDuration(-1)
|
||||
bodyDamage:setInfectionTime(-1)
|
||||
bodyDamage:setInfectionLevel(-1)
|
||||
bodyPart:SetInfected(false)
|
||||
|
||||
modDataHandler:setIsInfected(limbName, false)
|
||||
|
||||
Reference in New Issue
Block a user