Skip to content

Commit

Permalink
Revise "dot" tracking for friendly/hostile combo auras.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Oct 9, 2023
1 parent e69f9d0 commit 254156a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 17 additions & 2 deletions State.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4252,9 +4252,24 @@ local mt_active_dot = {

if aura then
if rawget( t, aura.key ) then return t[ aura.key ] end
t[ k ] = ns.numDebuffs( aura.id )
return t[ k ]
local id = aura.id
local count = ns.numDebuffs( id )

if aura.copy then
if type( aura.copy ) == "table" then
for _, v in ipairs( aura.copy ) do
if type(v) == "number" and v > 0 and v ~= id then

count = count + ns.numDebuffs( v )
end
end
elseif type( aura.copy ) == "number" and aura.copy > 0 and aura.copy ~= id then
count = count + ns.numDebuffs( aura.copy )
end
end

t[ k ] = count
return t[ k ]
else
return 0

Expand Down
2 changes: 1 addition & 1 deletion Targets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ do
for aura, targets in pairs( debuffs ) do
local a = class.auras[ aura ]
local window = a and a.duration or grace
local friendly = a and ( a.friendly or a.dot == "buff" or a.dot == "both" ) or false
local friendly = a and ( a.friendly or a.dot == "buff" ) or false
local expires = not ( a and a.no_ticks or friendly )

for unit, entry in pairs( targets ) do
Expand Down

0 comments on commit 254156a

Please sign in to comment.