From 3dad820014a5bcefdc994a6b3e467ddf49848ff7 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Sat, 13 Jul 2024 19:27:55 +0200 Subject: [PATCH] Fixed cicatrization force-applying with traits --- media/lua/client/TOC/Controllers/LocalPlayerController.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/media/lua/client/TOC/Controllers/LocalPlayerController.lua b/media/lua/client/TOC/Controllers/LocalPlayerController.lua index 0b2bbf9..cb89535 100644 --- a/media/lua/client/TOC/Controllers/LocalPlayerController.lua +++ b/media/lua/client/TOC/Controllers/LocalPlayerController.lua @@ -64,7 +64,9 @@ function LocalPlayerController.ManageTraits() tempHandler:close() -- The wound should be already cicatrized + local dcInst = DataController.GetInstance() LocalPlayerController.HandleSetCicatrization(DataController.GetInstance(), playerObj, v) + dcInst:apply() return end end @@ -311,7 +313,7 @@ end ---@param playerObj IsoPlayer ---@param limbName string function LocalPlayerController.HandleSetCicatrization(dcInst, playerObj, limbName) - TOC_DEBUG.print(tostring(limbName) .. " is cicatrized") + TOC_DEBUG.print("Setting cicatrization to " .. tostring(limbName)) dcInst:setIsCicatrized(limbName, true) dcInst:setCicatrizationTime(limbName, 0)