Commit 522dd66f authored by Ivaria's avatar Ivaria
Browse files

Fixed aura durations

parent d857a761
......@@ -541,15 +541,32 @@ local function VUHDO_updateHots(aUnit, anInfo)
if not tBuffIcon then
tDebuffOffset = tCnt - 1;
else
if VUHDO_LibClassicDurations then
local tNewDuration, tNewExpiry = VUHDO_LibClassicDurations:GetAuraDurationByUnit(aUnit, tSpellId, tCaster, tBuffName);
if tDuration == 0 and tNewDuration then
tDuration = tNewDuration;
tExpiry = tNewExpiry;
end
end
end
end
if tDebuffOffset then -- Achtung kein elseif
tBuffName, tBuffIcon, tStacks, _, tDuration, tExpiry, tCaster, _, _, tSpellId = UnitDebuff(aUnit, tCnt - tDebuffOffset);
if not tBuffIcon then
break;
end
if VUHDO_LibClassicDurations then
local tNewDuration, tNewExpiry = VUHDO_LibClassicDurations:GetAuraDurationByUnit(aUnit, tSpellId, tCaster, tBuffName);
if tDuration == 0 and tNewDuration then
tDuration = tNewDuration;
tExpiry = tNewExpiry;
end
end
end
tIsCastByPlayer = tCaster == "player" or tCaster == VUHDO_PLAYER_RAID_ID;
......
......@@ -299,10 +299,20 @@ function VUHDO_determineDebuff(aUnit)
for tCnt = 1, huge do
tName, tIcon, tStacks, tTypeString, tDuration, tExpiry, tUnitCaster, _, _, tSpellId, _, tIsBossDebuff = UnitDebuff(aUnit, tCnt);
if not tIcon then
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
tStacks = tStacks or 0;
if (tExpiry or 0) == 0 then tExpiry = (sCurIcons[tName] or sEmpty)[2] or tNow; end
......@@ -354,7 +364,19 @@ function VUHDO_determineDebuff(aUnit)
for tCnt = 1, huge do
tName, tIcon, tStacks, _, tDuration, tExpiry, tUnitCaster, _, _, tSpellId = UnitBuff(aUnit, tCnt);
if not tIcon then break; end
if not tIcon then
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;
......
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