mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-07-27 09:44:44 +00:00
feat: add Spell_Holy_AshesToAshes icon and implement debuff tracking loop in UnitAura handler
This commit is contained in:
@@ -127,6 +127,7 @@ local HealBot_TrackedHoTs = {
|
|||||||
["Interface\\Icons\\Spell_Holy_SealOfProtection"] = true,
|
["Interface\\Icons\\Spell_Holy_SealOfProtection"] = true,
|
||||||
["Interface\\Icons\\Spell_Holy_Excorcism"] = true,
|
["Interface\\Icons\\Spell_Holy_Excorcism"] = true,
|
||||||
["Interface\\Icons\\btnholyscriptures"] = true,
|
["Interface\\Icons\\btnholyscriptures"] = true,
|
||||||
|
["Interface\\Icons\\Spell_Holy_AshesToAshes"] = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
function HealBot_OnEvent_UnitAura(this, unit)
|
function HealBot_OnEvent_UnitAura(this, unit)
|
||||||
@@ -173,6 +174,17 @@ function HealBot_OnEvent_UnitAura(this, unit)
|
|||||||
b = b + 1
|
b = b + 1
|
||||||
end
|
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 HealBot_UnitDebuff[unit] then
|
||||||
if DebuffType and HealBot_Range_Check(unit, 27) == 1 then
|
if DebuffType and HealBot_Range_Check(unit, 27) == 1 then
|
||||||
if HealBot_Config.ShowDebuffWarning == 1 then
|
if HealBot_Config.ShowDebuffWarning == 1 then
|
||||||
|
|||||||
Reference in New Issue
Block a user