Skip to content

Commit

Permalink
update tbc retail code
Browse files Browse the repository at this point in the history
  • Loading branch information
jordonwow committed Mar 25, 2022
1 parent 064690e commit a71bf6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ read_globals = {
"AuraUtil",
"BOSS_DEBUFF_SIZE_INCREASE",
"BUFF_STACKS_OVERFLOW",
"BigDebuffs",
"C_NamePlate",
"C_Timer",
"CombatLogGetCurrentEventInfo",
Expand Down
14 changes: 4 additions & 10 deletions BigDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit a71bf6b

Please sign in to comment.