Feature set: expand class support and improve buff tracking logic

This commit is contained in:
Bluewhale1337
2026-11-04 17:41:52 +01:00
parent 8624a192b6
commit c3f8cdb4ed
14 changed files with 533 additions and 125 deletions
+12
View File
@@ -2,6 +2,10 @@
-- HealBot_AlwaysHeal: Returns true if healthy units should be shown.
function HealBot_AlwaysHeal()
local class = HealBot_UnitClass("player")
if class ~= "PRIEST" and class ~= "DRUID" and class ~= "PALADIN" and class ~= "SHAMAN" then
return true
end
return HealBot_Config.EnableHealthy==1
end
@@ -60,6 +64,14 @@ end
-- HealBot_CanHeal: Internal utility: HealBot_CanHeal
function HealBot_CanHeal(unit)
if string.find(unit, "^Test") then return true end
local class = HealBot_UnitClass("player")
if class ~= "PRIEST" and class ~= "DRUID" and class ~= "PALADIN" and class ~= "SHAMAN" then
if UnitExists(unit) and not UnitIsDeadOrGhost(unit) then
return true
end
return false
end
if UnitIsDeadOrGhost(unit) then
local rezSpell = HealBot_GetRezSpellForClass();
if rezSpell and HealBot_GetHealSpell(unit, rezSpell) then