You know the spacing issue, that no-one wanted to report?
Here's a fix for it. Below is also revised aura sorting without any extra cruft.
lua Code:
local CustomAuraFilter = function(icons, unit, icon, name, rank, texture, count, dtype, duration, timeLeft, caster)
local isPlayer
if(caster == 'player' or caster == 'vehicle') then
isPlayer = true
end
if((icons.onlyShowPlayer and isPlayer) or (not icons.onlyShowPlayer and name)) then
icon.isPlayer = isPlayer
icon.owner = caster
-- We set it to math.huge, because it lasts until cancelled.
if(timeLeft == 0) then
icon.timeLeft = math.huge
else
icon.timeLeft = timeLeft
end
return true
end
end
local sort = function(a, b)
return a.timeLeft > b.timeLeft
end
local PreAuraSetPosition = function(self, auras, max)
table.sort(auras, sort)
end
I'll try to push out 1.3.22 soonish, just need to level a DK and figure out how death runes work so I can fix the runebar bug people are complaining about.