Skip to content

Commit

Permalink
increase debuff cap from 16 to 40 since debuff cap is removed in SoM
Browse files Browse the repository at this point in the history
  • Loading branch information
wardz committed Mar 24, 2022
1 parent 0bc7289 commit df904d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ClassicCastbars/ClassicCastbars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function addon:CheckCastModifiers(unitID, cast)

-- Debuffs
if not cast.isChanneled and not cast.hasCastSlowModified then
for i = 1, 16 do
for i = 1, 40 do -- 16 in classic era but 40 in season of mastery
local _, _, _, _, _, _, _, _, _, spellID = UnitAura(unitID, i, "HARMFUL")
if not spellID then break end -- no more debuffs

Expand All @@ -100,7 +100,7 @@ function addon:CheckCastModifiers(unitID, cast)
-- Buffs
local libCD = LibStub and LibStub("LibClassicDurations", true)
local GetUnitAura = libCD and libCD.UnitAuraDirect or UnitAura
for i = 1, 32 do
for i = 1, 40 do
local name = GetUnitAura(unitID, i, "HELPFUL")
if not name then break end -- no more buffs

Expand Down

0 comments on commit df904d3

Please sign in to comment.