Commit 6b3446e4 authored by Ivaria's avatar Ivaria
Browse files

Fixed clock sweep for HoT Icons whose duration increases post application

parent 80479ac0
......@@ -195,6 +195,7 @@ local tDuration;
local tHotCfg;
local tIsChargeAlpha;
local tStarted;
local tClockDuration;
local function VUHDO_customizeHotIcons(aButton, aHotName, aRest, aTimes, anIcon, aDuration, aShieldCharges, aColor, anIndex, aClipL, aClipR, aClipT, aClipB)
tHotCfg = sBarColors[VUHDO_HOT_CFGS[anIndex]];
......@@ -258,12 +259,18 @@ local function VUHDO_customizeHotIcons(aButton, aHotName, aRest, aTimes, anIcon,
end
tTimer:SetText(tDuration);
tStarted = floor(10 * (GetTime() - aDuration + aRest) + 0.5) * 0.1;
if aDuration > 0 and (tClock:GetAlpha() == 0 or (tClock:GetAttribute("started") or tStarted) ~= tStarted) then
tClockDuration = tClock:GetCooldownDuration() * 0.001;
if aDuration > 0 and
(tClock:GetAlpha() == 0 or (tClock:GetAttribute("started") or tStarted) ~= tStarted or
(tClock:IsVisible() and aDuration > tClockDuration)) then
tClock:SetAlpha(1);
tClock:SetCooldown(tStarted, aDuration);
tClock:SetAttribute("started", tStarted);
end
tIcon:SetAlpha(((sIsFade or tHotCfg["isFadeOut"]) and aRest < 10) and tHotCfg["O"] * aRest * 0.1 or tHotCfg["O"]);
if aRest > 5 then
......
......@@ -27,15 +27,16 @@ local VUHDO_STUB_COMPONENT = {
["GetName"] = function() return "VuhDoDummyStub" end,
["GetAttribute"] = function() return nil end,
["SetAttribute"] = function() end,
-- General
["SetAllPoints"] = function() end,
["SetAlpha"] = function(self, anAlpha) end,
["GetAlpha"] = function() return 1 end,
["Hide"] = function() end,
["IsVisible"] = function() return false end,
-- General
["SetAllPoints"] = function() end,
["SetAlpha"] = function(self, anAlpha) end,
["GetAlpha"] = function() return 1 end,
["Hide"] = function() end,
["IsVisible"] = function() return false end,
-- Clock
["SetReverse"] = function() end,
["SetCooldown"] = function() end
["SetReverse"] = function() end,
["SetCooldown"] = function() end,
["GetCooldownDuration"] = function() return 0 end
};
......
......@@ -19,6 +19,7 @@ Bugfixes:
-- Fixed keybindings under 'Game Menu > Options > Gameplay > Keybindings > AddOns'
-- Fixed mouse/key bindings after spells are learned from talent changes
-- Fixed debuff types for both basic and talented Shaman 'Purify Spirit'
-- Fixed clock sweep for HoT Icons whose duration increases post application
Improvements:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment