addon does not always accurately check the distance to the target, if there is a tick 27yard range check in instances. So, while I will not understand what's going on, unplug it to avoid any problems with the radius in raids
function HealBot_Range_Check(unit, range)
local return_val = 0;
if not range then
range=40;
end
if ( unit=="player" ) then
return_val = 1;
elseif (UnitIsVisible(unit) == 1) then
local tx, ty = GetPlayerMapPosition(unit)
local dist
if tx > 0 or ty > 0 then
local px, py = GetPlayerMapPosition("player")
dist = sqrt((px - tx)^2 + (py - ty)^2)
if dist > HB_scale and (px > 0 or py > 0) then
if (CheckInteractDistance(unit, 4)) then
HB_scale = dist
end
end
if dist <=(HB_scale*range/27) then
return_val=1
end
else
if (HealBot_Config.QualityRange == 1) or range <= 27 then
if (CheckInteractDistance(unit, 4)) then
return_val = 1;
end
else
return_val = 1;
end
end
end
return return_val;
end