Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- from Kreiri's Buff Bars
- local function OnUnitChange(unit, value)
- for _, g in pairs(KBB.groups) do
- if g.settings.unit == unit then
- if (value) then
- KBB.RescanBuffs(g)
- if(g.settings.sorts) then g:sortBars() end
- g:alignBars()
- else
- g:removeAllBars()
- end
- end
- end
- end
- for k, v in pairs(KBB.units) do
- table.insert(Library.LibUnitChange.Register(k), {function(value) OnUnitChange(k, value) end, addonInfo.toc.Identifier, "OnUnitChange"})
- end
Advertisement
Add Comment
Please, Sign In to add comment