mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-09-12 10:10:45 +00:00
feat: add CDC module toggle to track all debuffs and fix minor aura and casting bug regressions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user