mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-09-11 18:00:20 +00:00
added ClassicAPI integration for enhanced distance checking, healing bonuses, and Focus unit support - overrides some functionality of other integrations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user