end |
end |
-- this event does not provide sguid! returns 0 |
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)) |
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 |
end |
-- this event does not provide sguid! returns 0 |
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) |
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 |
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) |