WoWInterface SVN zz_BuffInfo

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 25 to Rev 26
    Reverse comparison

Rev 25 → Rev 26

trunk/zz_BuffInfo/core.lua
88,7 → 88,14
b:Hide()
end
end
 
local function findAura(auraName,itype)
for i = 1,40 do
local aura = {UnitAura("player",i,itype)}
if(aura[1] and aura[1] == auraName) then
return aura
end
end
end
local function OnUpdate(self,event)
local g = GetTime()
if(self['nextUpdate'] > g) then return end
99,7 → 106,8
for _, itype in ipairs(types) do
-- print(tostring(aura[1]).."-"..tostring(itype))
if(aura[1]) then
aurainfo = {UnitAura("player", aura[1],nil,itype)}
-- aurainfo = {UnitAura("player", aura[1],nil,itype)}
aurainfo = findAura(aura[1],itype)
-- print(aurainfo[1],aura[1],aurainfo[14],aurainfo[15],aurainfo[16])
updateAura(spellId,aurainfo)
if(aurainfo[1]) then