Fix: Removed current form caching as druid to prevent being locked into current form - now querries form on each spellcast via API. Another attempt to resolve CDC colouring issues.

This commit is contained in:
Bluewhale1337
2026-09-01 09:10:38 +02:00
parent d2642745cb
commit e05238a5b2
4 changed files with 39 additions and 10 deletions
+15 -1
View File
@@ -186,7 +186,7 @@ function HealBot_OnEvent_UnitAura(this, unit)
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
@@ -238,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