From 5e04ace0f42ca26cab15f9640cbed7b991d5e3b4 Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 18 May 2023 09:41:44 -0500 Subject: [PATCH] Fix CC modules on Wrath Classic --- changelog.md | 1 + modules/TargetCC.lua | 2 +- this_version.md | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 4f89e0e..551cf89 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,7 @@ v1.14.21: - Increased maximum scale/zoom to 400%, by request. +- Fixed TargetCC/FocusCC modules on Wrath Classic. v1.14.20: diff --git a/modules/TargetCC.lua b/modules/TargetCC.lua index be1bca9..3d3bc7b 100644 --- a/modules/TargetCC.lua +++ b/modules/TargetCC.lua @@ -360,7 +360,7 @@ function TargetCC.prototype:GetMaxDebuffDuration(unitName, debuffNames) while debuff do remaining = endTime - GetTime() - if debuffNames[spellId] and (not self.moduleSettings.onlyShowForMyDebuffs or isMine) then + if (debuffNames[spellId] or debuffNames[debuff]) and (not self.moduleSettings.onlyShowForMyDebuffs or isMine) then if result[0] then if result[2] < remaining then result = {debuff, duration, remaining} diff --git a/this_version.md b/this_version.md index d651349..ea6a5a8 100644 --- a/this_version.md +++ b/this_version.md @@ -3,6 +3,7 @@ v1.14.21: - Increased maximum scale/zoom to 400%, by request. +- Fixed TargetCC/FocusCC modules on Wrath Classic. v1.14.20: