Fix issue with debuffs/buffs
Jim Whitehead [07-24-18 - 11:03]
Fix issue with debuffs/buffs
diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua
index 0aa7ef6..d99a4fb 100644
--- a/PerfectRaid_Buffs.lua
+++ b/PerfectRaid_Buffs.lua
@@ -184,7 +184,7 @@ function Buffs:UNIT_AURA(event, unit)
for i=1,40 do
- local name,rank,texture,count,dispelType,duration,expires,caster,stealable = UnitBuff(unit, i)
+ local name,texture,count,dispelType,duration,expires,caster,stealable = UnitBuff(unit, i)
if not name then break end
if caster == "player" then
mybuffs[name] = true
@@ -192,15 +192,13 @@ function Buffs:UNIT_AURA(event, unit)
buffexpiry[name] = expires
end
- count = count and count or 0
-
buffcache[name] = (buffcache[name] or 0) + 1
buffstacks[name] = (buffstacks[name] or 0) + count
end
local debuffType
for i=1,40 do
- local name,rank,texture,count,dispelType,duration,expires,caster = UnitDebuff(unit, i)
+ local name,texture,count,dispelType,duration,expires,caster = UnitDebuff(unit, i)
if not name and not dispelType then break end
buffcache[name] = (buffcache[name] or 0) + 1