WoWInterface SVN CompactBars

Compare Revisions

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

Rev 26 → Rev 27

CompactBars/CompactBars.toc
1,4 → 1,4
## Interface: 30000
## Interface: 31000
## Title: CompactBars
## Title-zhTW: CompactBars直覺效果條
## Title-zhCN: CompactBars直觉效果条
CompactBars/core.lua
609,60 → 609,24
end
end
-- this event does not provide sguid! returns 0
elseif event == "SPELL_AURA_REFRESH" and dguid == UnitGUID("target") then
------------------------------------------
--
-- temorary fix! (because sguid is alway 0)
--
------------------------------------------
local expirationTime = select(7, debuffCheck(spellname, spellid))
if expirationTime then
if expT[spellid..dguid] then
if not (expT[spellid..dguid] == expirationTime) then
expT[spellid..dguid] = expirationTime
------------------------------------------
--
-- temorary fix end!
--
------------------------------------------
info = createSpellInfo(dguid, spellid, self:getTyp(spellid), dname)
if info then
setBarDur(deepCopy(info), self:GetSpellInfo(info.typ, spellid))
end
end
end
elseif event == "SPELL_AURA_REFRESH" and (CompactBars:GetSpellInfo("SharedDebuffs", spellid) or (sguid == UnitGUID("player"))) then
info = createSpellInfo(dguid, spellid, self:getTyp(spellid), dname)
if info then
setBarDur(deepCopy(info), self:GetSpellInfo(info.typ, spellid))
end
-- this event does not provide sguid! returns 0
elseif event == "SPELL_AURA_APPLIED_DOSE" and dguid == UnitGUID("target") then
------------------------------------------
--
-- temorary fix! (because sguid is alway 0)
--
------------------------------------------
local expirationTime = select(7, debuffCheck(spellname, spellid))
if expirationTime then
if expT[spellid..dguid] then
if not (expT[spellid..dguid] == expirationTime) then
expT[spellid..dguid] = expirationTime
------------------------------------------
--
-- temorary fix end!
--
------------------------------------------
info = createSpellInfo(dguid, spellid, self:getTyp(spellid), dname)
if info then
dur, appl, color, colorzero = self:GetSpellInfo(info.typ, spellid)
if not color then
color, colorzero = schoolColor(spellschool)
end
if appl then
color.a = (application/appl) * (color.a or 1)
end
setBarDur(deepCopy(info), self:GetSpellInfo(info.typ, spellid))
setBarColor(info, color, colorzero)
end
end
elseif event == "SPELL_AURA_APPLIED_DOSE" and (CompactBars:GetSpellInfo("SharedDebuffs", spellid) or (sguid == UnitGUID("player"))) then
info = createSpellInfo(dguid, spellid, self:getTyp(spellid), dname)
if info then
dur, appl, color, colorzero = self:GetSpellInfo(info.typ, spellid)
if not color then
color, colorzero = schoolColor(spellschool)
end
if appl then
color.a = (application/appl) * (color.a or 1)
end
setBarDur(deepCopy(info), self:GetSpellInfo(info.typ, spellid))
setBarColor(info, color, colorzero)
end
elseif event == "SPELL_AURA_REMOVED" and (sguid == UnitGUID("player") or CompactBars:getTyp(spellid) == "SharedDebuffs") then
info = createSpellInfo(dguid, spellid, self:getTyp(spellid), dname)