mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-07-27 01:34:44 +00:00
fix: memory leak in UnitAura and bump version to 1.4.2
This commit is contained in:
+16
-12
@@ -115,23 +115,27 @@ function HealBot_CheckBuffs(unit)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local HealBot_TrackedHoTs = {
|
||||||
|
["Interface\\Icons\\Spell_Holy_Renew"] = true,
|
||||||
|
["Interface\\Icons\\Spell_Nature_Rejuvenation"] = true,
|
||||||
|
["Interface\\Icons\\Spell_Nature_ResistNature"] = true,
|
||||||
|
["Interface\\Icons\\Spell_Holy_PowerWordShield"] = true,
|
||||||
|
["Interface\\Icons\\Spell_Holy_SealOfProtection"] = true,
|
||||||
|
["Interface\\Icons\\Spell_Holy_Excorcism"] = true,
|
||||||
|
["Interface\\Icons\\btnholyscriptures"] = true,
|
||||||
|
}
|
||||||
|
|
||||||
function HealBot_OnEvent_UnitAura(this, unit)
|
function HealBot_OnEvent_UnitAura(this, unit)
|
||||||
local DebuffType;
|
local DebuffType;
|
||||||
|
|
||||||
if HealBot_Heals[unit] and unit ~= "target" then
|
if HealBot_Heals[unit] and unit ~= "target" then
|
||||||
HealBot_UnitIcons[unit] = {}
|
if not HealBot_UnitIcons[unit] then
|
||||||
|
HealBot_UnitIcons[unit] = {}
|
||||||
|
end
|
||||||
|
for j = 1, 5 do
|
||||||
|
HealBot_UnitIcons[unit][j] = nil
|
||||||
|
end
|
||||||
local iconCount = 0
|
local iconCount = 0
|
||||||
|
|
||||||
local HealBot_TrackedHoTs = {
|
|
||||||
["Interface\\Icons\\Spell_Holy_Renew"] = true,
|
|
||||||
["Interface\\Icons\\Spell_Nature_Rejuvenation"] = true,
|
|
||||||
["Interface\\Icons\\Spell_Nature_ResistNature"] = true,
|
|
||||||
["Interface\\Icons\\Spell_Holy_PowerWordShield"] = true,
|
|
||||||
["Interface\\Icons\\Spell_Holy_SealOfProtection"] = true,
|
|
||||||
["Interface\\Icons\\Spell_Holy_Excorcism"] = true,
|
|
||||||
["Interface\\Icons\\btnholyscriptures"] = true,
|
|
||||||
}
|
|
||||||
|
|
||||||
local i = 1;
|
local i = 1;
|
||||||
while true do
|
while true do
|
||||||
local debuff, tmp, debuff_type = UnitDebuff(unit, i, 1)
|
local debuff, tmp, debuff_type = UnitDebuff(unit, i, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user