feat: add CDC module toggle to track all debuffs and fix minor aura and casting bug regressions

This commit is contained in:
Bluewhale1337
2026-08-29 11:34:41 +02:00
parent 377c2c31d0
commit 8026e14cde
6 changed files with 83 additions and 27 deletions
+18 -2
View File
@@ -183,9 +183,10 @@ function HealBot_OnEvent_UnitAura(this, unit)
local iconCount = 0
local i = 1;
HealBot_UnitDebuff[unit] = nil;
local trackedTextures = {}
while true do
local debuff, tmp, debuff_type = UnitDebuff(unit, i)
local debuff, tmp, debuff_type = UnitDebuff(unit, i, 1)
if debuff then
local mapped_type = nil
if debuff_type then
@@ -208,9 +209,10 @@ function HealBot_OnEvent_UnitAura(this, unit)
end
if isDispellable then
if iconCount < 10 then
if iconCount < 10 and not trackedTextures[debuff] then
iconCount = iconCount + 1
HealBot_UnitIcons[unit][iconCount] = debuff
trackedTextures[debuff] = true
end
end
@@ -236,6 +238,20 @@ function HealBot_OnEvent_UnitAura(this, unit)
break
end
end
if HealBot_Config.CDCShowAllDebuffs == 1 then
local k = 1
while true do
local debuff = UnitDebuff(unit, k)
if not debuff then break end
if not trackedTextures[debuff] and iconCount < 10 then
iconCount = iconCount + 1
HealBot_UnitIcons[unit][iconCount] = debuff
trackedTextures[debuff] = true
end
k = k + 1
end
end
local b = 1
while true do