From 3eeb9d10008e9632c4c9d77017a964794fab93a3 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Thu, 17 Apr 2025 15:46:22 +0200 Subject: [PATCH] fix: hotfix to IgnoredActions --- .../media/lua/client/TOC/Controllers/LimitActionsController.lua | 1 - common/media/lua/client/TOC/Tests.lua | 1 - common/media/lua/client/TOC/TimedActions/IgnoredActions.lua | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common/media/lua/client/TOC/Controllers/LimitActionsController.lua b/common/media/lua/client/TOC/Controllers/LimitActionsController.lua index 8170515..df1b8e2 100644 --- a/common/media/lua/client/TOC/Controllers/LimitActionsController.lua +++ b/common/media/lua/client/TOC/Controllers/LimitActionsController.lua @@ -66,7 +66,6 @@ local og_ISBaseTimedAction_adjustMaxTime = ISBaseTimedAction.adjustMaxTime ---@diagnostic disable-next-line: duplicate-set-field function ISBaseTimedAction:adjustMaxTime(maxTime) local time = og_ISBaseTimedAction_adjustMaxTime(self, maxTime) - --TOC_DEBUG.print("Running override for adjustMaxTime") -- Exceptions handling, if we find that parameter then we just use the original time local actionsQueue = ISTimedActionQueue.getTimedActionQueue(getPlayer()) diff --git a/common/media/lua/client/TOC/Tests.lua b/common/media/lua/client/TOC/Tests.lua index a636c15..3c326c9 100644 --- a/common/media/lua/client/TOC/Tests.lua +++ b/common/media/lua/client/TOC/Tests.lua @@ -160,7 +160,6 @@ TestFramework.registerTestModule("Various", "Player", function() return Tests end) - TestFramework.registerTestModule("Various", "Visuals", function() local Tests = {} diff --git a/common/media/lua/client/TOC/TimedActions/IgnoredActions.lua b/common/media/lua/client/TOC/TimedActions/IgnoredActions.lua index 509cd6a..09e2a8f 100644 --- a/common/media/lua/client/TOC/TimedActions/IgnoredActions.lua +++ b/common/media/lua/client/TOC/TimedActions/IgnoredActions.lua @@ -18,7 +18,7 @@ local StaticData = require("TOC/StaticData") local function OverrideAction(action, maxTime) -- TODO Add forced debuff instead of just relying on the vanilla values? action.skipTOC = true - action.maxTime = time + action.maxTime = maxTime action.animSpeed = 1.0 end