-- Status bar layout functions and tables moved to HealBot_View_Layout.lua function HealBot_AlwaysHeal() return HealBot_Config.EnableHealthy==1 end function HealBot_MayHeal(unit) if not UnitName(unit) or not HealBot_Heals[unit] then return false end if unit ~= 'target' then return true end if not HealBot_Config.TargetHeals or UnitCanAttack("player",unit) then return false end return true; end function HealBot_ShouldHeal(unit) if HealBot_UnitDebuff[unit] and not UnitIsDeadOrGhost(unit) then if HealBot_Range_Check(unit, 30)==1 then return true; end end return HealBot_MayHeal(unit) and UnitHealth(unit)>0 and not UnitIsDeadOrGhost(unit) and (UnitHealth(unit)