From a71bf6b657080499236900049d92c1bafc531b70 Mon Sep 17 00:00:00 2001 From: jordon <29447509+jordonwow@users.noreply.github.com> Date: Fri, 25 Mar 2022 11:56:12 -0700 Subject: [PATCH] update tbc retail code --- .luacheckrc | 1 - BigDebuffs.lua | 14 ++++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 0945d23..4c4d8bf 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -17,7 +17,6 @@ read_globals = { "AuraUtil", "BOSS_DEBUFF_SIZE_INCREASE", "BUFF_STACKS_OVERFLOW", - "BigDebuffs", "C_NamePlate", "C_Timer", "CombatLogGetCurrentEventInfo", diff --git a/BigDebuffs.lua b/BigDebuffs.lua index 94ebd7a..1b8cf41 100755 --- a/BigDebuffs.lua +++ b/BigDebuffs.lua @@ -1652,8 +1652,6 @@ else return BigDebuffs:IsPriorityDebuff(spellId) or Default_CompactUnitFrame_UtilIsPriorityDebuff(unit, index, filter) end - local Default_SpellGetVisibilityInfo = SpellGetVisibilityInfo - local function CompactUnitFrame_UtilShouldDisplayBuff(unit, index, filter) local name, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, _, spellId, canApplyAura = UnitBuff(unit, index, filter); @@ -1801,14 +1799,10 @@ else while ( frameNum <= maxBuffs ) do local buffName = UnitBuff(frame.displayedUnit, index, filter); if ( buffName ) then - if ( CompactUnitFrame_UtilShouldDisplayBuff(frame.displayedUnit, index, filter) and - not CompactUnitFrame_UtilIsBossAura(frame.displayedUnit, index, filter, true) ) - then + if ( CompactUnitFrame_UtilShouldDisplayBuff(frame.displayedUnit, index, filter) and not CompactUnitFrame_UtilIsBossAura(frame.displayedUnit, index, filter, true) ) then local buffFrame = frame.buffFrames[frameNum]; - if buffFrame then - CompactUnitFrame_UtilSetBuff(buffFrame, frame.displayedUnit, index, filter); - frameNum = frameNum + 1; - end + CompactUnitFrame_UtilSetBuff(buffFrame, frame.displayedUnit, index, filter); + frameNum = frameNum + 1; end else break; @@ -1817,7 +1811,7 @@ else end for i=frameNum, maxBuffs do local buffFrame = frame.buffFrames[i]; - if buffFrame then buffFrame:Hide() end + buffFrame:Hide(); end end) end