Fixing interactions

This commit is contained in:
ZioPao
2024-01-09 00:04:57 +01:00
parent 06e41790ca
commit aeb1bca94d
5 changed files with 27 additions and 15 deletions

View File

@@ -20,6 +20,7 @@ function BaseHandler:new(panel, bodyPart)
end
function BaseHandler:isInjured()
TOC_DEBUG.print("Running isInjured")
local bodyPart = self.bodyPart
return (bodyPart:HasInjury() or bodyPart:stitched() or bodyPart:getSplintFactor() > 0) and not bodyPart:bandaged()
end