mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-10-27 14:10:52 +00:00
fix: improve performance and safety with null checks and talent rank caching
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user