feat: add Spell_Holy_AshesToAshes icon and implement debuff tracking loop in UnitAura handler

This commit is contained in:
Bluewhale1337
2026-07-20 18:13:47 +02:00
parent e6ad9e7506
commit 441a45150f
+12
View File
@@ -127,6 +127,7 @@ local HealBot_TrackedHoTs = {
["Interface\\Icons\\Spell_Holy_SealOfProtection"] = true,
["Interface\\Icons\\Spell_Holy_Excorcism"] = true,
["Interface\\Icons\\btnholyscriptures"] = true,
["Interface\\Icons\\Spell_Holy_AshesToAshes"] = true,
}
function HealBot_OnEvent_UnitAura(this, unit)
@@ -172,6 +173,17 @@ function HealBot_OnEvent_UnitAura(this, unit)
end
b = b + 1
end
local d = 1
while true do
local debuff = UnitDebuff(unit, d)
if not debuff then break end
if HealBot_TrackedHoTs[debuff] and iconCount < 5 then
iconCount = iconCount + 1
HealBot_UnitIcons[unit][iconCount] = debuff
end
d = d + 1
end
if HealBot_UnitDebuff[unit] then
if DebuffType and HealBot_Range_Check(unit, 27) == 1 then