little fix

This commit is contained in:
ZioPao
2023-11-16 02:44:57 +01:00
parent 16e83955f3
commit c09c3ac646

View File

@@ -172,8 +172,9 @@ function ISBaseTimedAction:adjustMaxTime(maxTime)
-- Exceptions handling, if we find that parameter then we just use the original time -- Exceptions handling, if we find that parameter then we just use the original time
local queue = ISTimedActionQueue.getTimedActionQueue(getPlayer()) local queue = ISTimedActionQueue.getTimedActionQueue(getPlayer())
if queue.current.skipTOC then return time end if queue and queue.current and queue.current.skipTOC then return time end
-- Action is valid, check if we have any cut limb and then modify maxTime
local modDataHandler = ModDataHandler.GetInstance() local modDataHandler = ModDataHandler.GetInstance()
if time ~= -1 and modDataHandler and modDataHandler:getIsAnyLimbCut() then if time ~= -1 and modDataHandler and modDataHandler:getIsAnyLimbCut() then
local pl = getPlayer() local pl = getPlayer()