Commit 0d708c34 authored by Ivaria's avatar Ivaria
Browse files

Fixed custom debuff spell source filter when aura is a buff

parent 6fd52973
......@@ -280,3 +280,12 @@ function VUHDO_getLatestCustomDebuff(aUnit)
return tDebuffInfo[1], tDebuffInfo[4], tDebuffInfo[5], tDebuffInfo[6];
end
--
function VUHDO_getDebuffIcons()
return VUHDO_DEBUFF_ICONS;
end
......@@ -298,7 +298,7 @@ function VUHDO_determineDebuff(aUnit)
tNow = GetTime();
for tCnt = 1, huge do
tName, tIcon, tStacks, tTypeString, tDuration, tExpiry, tUnitCaster, _, _, tSpellId, _, tIsBossDebuff = UnitDebuff(aUnit, tCnt, false);
tName, tIcon, tStacks, tTypeString, tDuration, tExpiry, tUnitCaster, _, _, tSpellId, _, tIsBossDebuff = UnitDebuff(aUnit, tCnt);
if not tIcon then
break;
end
......@@ -353,16 +353,16 @@ function VUHDO_determineDebuff(aUnit)
end
for tCnt = 1, huge do
tName, tIcon, tStacks, _, tDuration, tExpiry, _, _, _, tSpellId = UnitBuff(aUnit, tCnt);
tName, tIcon, tStacks, _, tDuration, tExpiry, tUnitCaster, _, _, tSpellId = UnitBuff(aUnit, tCnt);
if not tIcon then break; end
tDebuffConfig = VUHDO_CUSTOM_DEBUFF_CONFIG[tName] or VUHDO_CUSTOM_DEBUFF_CONFIG[tostring(tSpellId)] or sEmpty;
if tDebuffConfig[1] then -- Set color
if tDebuffConfig[1] and ((tDebuffConfig[3] and tUnitCaster == "player") or (tDebuffConfig[4] and tUnitCaster ~= "player")) then -- Color?
sCurChosenType, sCurChosenName, sCurChosenSpellId = 6, tName, tSpellId; -- VUHDO_DEBUFF_TYPE_CUSTOM
end
if tDebuffConfig[2] then -- Set icon
if tDebuffConfig[2] and ((tDebuffConfig[3] and tUnitCaster == "player") or (tDebuffConfig[4] and tUnitCaster ~= "player")) then -- Icon?
sCurIcons[tName] = VUHDO_getOrCreateIconArray(tIcon, tExpiry, tStacks or 0, tDuration, true, tSpellId, tCnt);
end
end
......
......@@ -11,6 +11,7 @@ Known issues:
Bugfixes:
-- Fixed hostile spells options UI recognition of talents and items
-- Fixed custom debuff spell source filter when aura is a buff
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