Need to find out whats using UnitAura nil values

This commit is contained in:
Logan Payton
2018-05-16 13:32:28 -04:00
parent 155bc1c429
commit 9df3e70c39
2 changed files with 10 additions and 5 deletions
+8 -4
View File
@@ -145,11 +145,15 @@ function UnitAura(unit, i, filter)
end
if not filter or match(filter, "(HELPFUL)") then
local name, rank, aura, count, duration, maxDuration = UnitBuff(unit, i, filter)
return name, rank, aura, count, nil, duration or 0, maxDuration or 0
-- local name, rank, aura, count, duration, maxDuration = UnitBuff(unit, i, filter)
-- return name, rank, aura, count, nil, duration or 0, maxDuration or 0
local icon, count, debuffType = UnitBuff(unit, i, filter)
return icon, count, icon, count, debuffType, 0, 0
else
local name, rank, aura, count, dType, duration, maxDuration = UnitDebuff(unit, i, filter)
return name, rank, aura, count, dType, duration or 0, maxDuration or 0
-- local name, rank, aura, count, dType, duration, maxDuration = UnitDebuff(unit, i, filter)
-- return name, rank, aura, count, dType, duration or 0, maxDuration or 0
local icon, count, debuffType = UnitDebuff(unit, i, filter)
return icon, count, icon, count, debuffType, 0, 0
end
end