From 63cebf24f2f1a932b074291ea45cf4e494ba1eba Mon Sep 17 00:00:00 2001 From: Jim Whitehead Date: Tue, 24 Jul 2018 13:03:11 +0200 Subject: [PATCH] Fix issue with debuffs/buffs --- PerfectRaid_Buffs.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 1.7.9.5