Commit 4d51ebca authored by Ivaria's avatar Ivaria
Browse files

Use LibClassicDurations again

parent 3b6329df
......@@ -320,6 +320,15 @@ function VUHDO_determineDebuff(aUnit)
break;
end
if VUHDO_LibClassicDurations then
local tNewDuration, tNewExpiry = VUHDO_LibClassicDurations:GetAuraDurationByUnit(aUnit, tSpellId, tUnitCaster, tName);
if tDuration == 0 and tNewDuration then
tDuration = tNewDuration;
tExpiry = tNewExpiry;
end
end
if (tExpiry or 0) == 0 then tExpiry = (sCurIcons[tName] or sEmpty)[2] or tNow; end
-- Custom Debuff?
......@@ -391,6 +400,15 @@ function VUHDO_determineDebuff(aUnit)
break;
end
if VUHDO_LibClassicDurations then
local tNewDuration, tNewExpiry = VUHDO_LibClassicDurations:GetAuraDurationByUnit(aUnit, tSpellId, tUnitCaster, tName);
if tDuration == 0 and tNewDuration then
tDuration = tNewDuration;
tExpiry = tNewExpiry;
end
end
tDebuffConfig = VUHDO_CUSTOM_DEBUFF_CONFIG[tName] or VUHDO_CUSTOM_DEBUFF_CONFIG[tostring(tSpellId)] or sEmpty;
if tDebuffConfig[1] and ((tDebuffConfig[3] and tUnitCaster == "player") or (tDebuffConfig[4] and tUnitCaster ~= "player")) then -- Color?
......
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