fix: improve performance and safety with null checks and talent rank caching

This commit is contained in:
Bluewhale1337
2026-10-04 17:54:00 +02:00
parent 526a4f1b9b
commit 2a0d607bcd
5 changed files with 23 additions and 22 deletions
+2
View File
@@ -565,6 +565,7 @@ end
-- HealBot_OnEvent_TalentsChanged: Internal utility: HealBot_OnEvent_TalentsChanged
function HealBot_OnEvent_TalentsChanged(this, arg1)
HealBot_AddDebug("HB: TalentsChanged");
if HealBot_UpdateTalentRanks then HealBot_UpdateTalentRanks() end
end
-- HealBot_OnEvent_PlayerEnteringWorld: Internal utility: HealBot_OnEvent_PlayerEnteringWorld
@@ -574,6 +575,7 @@ function HealBot_OnEvent_PlayerEnteringWorld(this)
if HealBot_ApplyRefreshHook then
HealBot_ApplyRefreshHook()
end
if HealBot_UpdateUnitIDCache then HealBot_UpdateUnitIDCache() end
end
-- HealBot_OnEvent_SpellcastStart: Internal utility: HealBot_OnEvent_SpellcastStart