Skip to content

Commit

Permalink
Merge pull request #338 from aniketschneider/patch-1
Browse files Browse the repository at this point in the history
Use varargs unpacking instead of removed CompactUnitFrame_Util_IsBossAura
  • Loading branch information
jordonwow authored Mar 22, 2022
2 parents 22cb4dd + 3895e5d commit 9efea4d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions BigDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,8 @@ if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then

if not doneWithDebuffs then
AuraUtil.ForEachAura(frame.displayedUnit, "HARMFUL", batchCount, function(...)
if CompactUnitFrame_Util_IsBossAura(...) then
local name, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, _, spellId, canApplyAura, isBossAura = ...;
if isBossAura then
if not bossDebuffs then
bossDebuffs = {};
end
Expand Down Expand Up @@ -1499,7 +1500,8 @@ if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then
index = 1;
batchCount = math.max(frame.maxDebuffs, maxBuffs);
AuraUtil.ForEachAura(frame.displayedUnit, "HELPFUL", batchCount, function(...)
if CompactUnitFrame_Util_IsBossAura(...) then
local name, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, _, spellId, canApplyAura, isBossAura = ...;
if isBossAura then
-- Boss Auras are considered Debuffs for our purposes.
if not doneWithDebuffs then
if not bossBuffs then
Expand Down Expand Up @@ -1545,8 +1547,9 @@ if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then
batchCount = math.max(frame.maxDebuffs, frame.maxDispelDebuffs);
index = 1;
AuraUtil.ForEachAura(frame.displayedUnit, "HARMFUL|RAID", batchCount, function(...)
local name, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, _, spellId, canApplyAura, isBossAura = ...;
if not doneWithDebuffs and displayOnlyDispellableDebuffs then
if CompactUnitFrame_Util_ShouldDisplayDebuff(...) and not CompactUnitFrame_Util_IsBossAura(...) and not CompactUnitFrame_Util_IsPriorityDebuff(...) then
if CompactUnitFrame_Util_ShouldDisplayDebuff(...) and not isBossAura and not CompactUnitFrame_Util_IsPriorityDebuff(...) then
if not nonBossDebuffs then
nonBossDebuffs = {};
end
Expand Down

0 comments on commit 9efea4d

Please sign in to comment.