Implemented modular external addon integration system for UnitXP, Nampower, and SuperWoW support.

This commit is contained in:
Bluewhale1337
2026-08-17 23:33:20 +02:00
parent 58f593947e
commit dc2f0ca089
8 changed files with 208 additions and 9 deletions
+6 -3
View File
@@ -15,9 +15,12 @@ function HealBot_Range_Check(unit, range)
if ( unit == "player" ) then
return_val = 1;
elseif HealBot_Integrations_UnitXP_Active then
local dist = UnitXP("distanceBetween", "player", unit, "Gaussian")
if dist and dist <= range then
return_val = 1;
local inSight = UnitXP("inSight", "player", unit)
if inSight then
local dist = UnitXP("distanceBetween", "player", unit, "Gaussian")
if dist and dist <= range then
return_val = 1;
end
end
elseif ( UnitIsVisible(unit) == 1 ) then
local tx, ty = GetPlayerMapPosition(unit)