mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- only show Lacerates if they were applied to the target by the player (not by other players); had problems with bear tank + feral dps in the same group
- made the same change to SunderCount's version of the debuff function, but didn't set it to restrict to the player
This commit is contained in:
@ -203,15 +203,15 @@ function SunderCount.prototype:CreateSunderFrame()
|
||||
end
|
||||
|
||||
|
||||
function SunderCount.prototype:GetDebuffCount(unit, ability)
|
||||
function SunderCount.prototype:GetDebuffCount(unit, ability, onlyMine)
|
||||
for i = 1, MAX_DEBUFF_COUNT do
|
||||
local name, _, texture, applications = UnitDebuff(unit, i)
|
||||
local name, _, texture, applications, _, duration = UnitDebuff(unit, i)
|
||||
|
||||
if not texture then
|
||||
break
|
||||
end
|
||||
|
||||
if string.match(texture, ability) then
|
||||
if string.match(texture, ability) and (not onlyMine or duration) then
|
||||
return applications
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user