diff --git a/media/lua/client/TOC/Controllers/LocalPlayerController.lua b/media/lua/client/TOC/Controllers/LocalPlayerController.lua index 225651a..18b7986 100644 --- a/media/lua/client/TOC/Controllers/LocalPlayerController.lua +++ b/media/lua/client/TOC/Controllers/LocalPlayerController.lua @@ -149,7 +149,11 @@ LocalPlayerController.hasBeenDamaged = false function LocalPlayerController.HandleDamage(character) --TOC_DEBUG.print("Player got hit!") -- TOC_DEBUG.print(damageType) - if character ~= getPlayer() then return end + if character ~= getPlayer() then + -- Disable lock before doing anything else + LocalPlayerController.hasBeenDamaged = false + return + end local bd = character:getBodyDamage() local dcInst = DataController.GetInstance() local modDataNeedsUpdate = false diff --git a/media/lua/client/TOC/Main.lua b/media/lua/client/TOC/Main.lua index 03f53dd..a62a028 100644 --- a/media/lua/client/TOC/Main.lua +++ b/media/lua/client/TOC/Main.lua @@ -6,7 +6,7 @@ require("TOC/Events") ---@class Main local Main = { - _version = "2.0.10" + _version = "2.0.11" } function Main.Start() diff --git a/mod.info b/mod.info index 42be3ff..f1f701f 100644 --- a/mod.info +++ b/mod.info @@ -4,5 +4,5 @@ description=You've been bitten. You have only two choices. id=TheOnlyCure icon=icon.png url=https://github.com/ZioPao/The-Only-Cure -modversion=2.0.10 +modversion=2.0.11 pzversion=41.65