added ClassicAPI integration for enhanced distance checking, healing bonuses, and Focus unit support - overrides some functionality of other integrations

This commit is contained in:
Bluewhale1337
2026-08-18 18:11:54 +02:00
parent dc2f0ca089
commit d0e027ec12
9 changed files with 96 additions and 6 deletions
+26
View File
@@ -1,5 +1,17 @@
HealBot_Integrations_UnitXP_Active = false;
HealBot_Integrations_Nampower_Active = false;
HealBot_Integrations_SuperWoW_Active = false;
HealBot_Integrations_ClassicAPI_Active = false;
function HealBot_GetUnitGUID(unit)
if not unit then return nil end
if HealBot_Integrations_ClassicAPI_Active and UnitGUID then
return UnitGUID(unit)
elseif HealBot_Integrations_SuperWoW_Active and GetUnitGUID then
return GetUnitGUID(unit)
end
return nil
end
function HealBot_Integrations_Toggle()
-- UnitXP
@@ -94,4 +106,18 @@ end
HealBot_Integrations_SuperWoW_Active = false;
HealBot_AddDebug("SuperWoW Integration: DISABLED");
end
-- ClassicAPI
if HealBot_Config.HealBot_Integrations_ClassicAPI == 1 then
if UnitGUID then
HealBot_Integrations_ClassicAPI_Active = true;
HealBot_AddDebug("ClassicAPI Integration: ENABLED");
else
HealBot_Integrations_ClassicAPI_Active = false;
HealBot_AddDebug("ClassicAPI Integration: DISABLED (Mod Not Found)");
end
else
HealBot_Integrations_ClassicAPI_Active = false;
HealBot_AddDebug("ClassicAPI Integration: DISABLED");
end
end