perf: optimize CPU and memory usage via boolean state tracking, event filtering, and per-character SavedVariables.

This commit is contained in:
Bluewhale1337
2026-07-20 23:22:15 +02:00
parent 441a45150f
commit 85ad55c1cb
6 changed files with 25 additions and 35 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ function HealBot_OnEvent_UnitAura(this, unit)
iconCount = iconCount + 1
HealBot_UnitIcons[unit][iconCount] = debuff
end
if HealBot_CDCInc[UnitClass(unit)] == 1 and HealBot_DebuffWatch[debuff_type] == "YES" then
if HealBot_CDCInc[UnitClass(unit)] == 1 and HealBot_DebuffWatch[debuff_type] then
HealBot_UnitDebuff[unit] = debuff_type
DebuffType = debuff_type;
if HealBot_DebuffPriority[debuff_type] then