From 2ab7a93a6ed0323087530ddebe67a172244ea725 Mon Sep 17 00:00:00 2001 From: Bluewhale1337 <295648290+Bluewhale1337@users.noreply.github.com> Date: Wed, 5 Aug 2026 21:53:41 +0200 Subject: [PATCH] Refactor + rewrite: implement independent pet heal toggles and integrate into layout rendering and emergency monitoring logic --- HealBot_View_Layout.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/HealBot_View_Layout.lua b/HealBot_View_Layout.lua index 5e85306..8637cd1 100644 --- a/HealBot_View_Layout.lua +++ b/HealBot_View_Layout.lua @@ -1096,7 +1096,11 @@ function HealBot_Action_AppendNewUnits() if CT_RA_MainTanks[j] then for k = 1, GetNumRaidMembers() do local unit = "raid" .. k - if UnitName(unit) == CT_RA_MainTanks[j] then + local skip = false + if UnitInParty(unit) and HealBot_Config.GroupHeals == 1 and not UnitIsUnit(unit, "player") then + skip = true + end + if not skip and UnitName(unit) == CT_RA_MainTanks[j] then table.insert(unitsToCheck, unit) end end @@ -1114,7 +1118,10 @@ function HealBot_Action_AppendNewUnits() if HealBot_Config.EmergencyHeals == 1 then if GetNumRaidMembers() > 0 then for j = 1, 40 do - table.insert(unitsToCheck, "raid" .. j) + local unit = "raid" .. j + if not (UnitInParty(unit) and HealBot_Config.GroupHeals == 1) then + table.insert(unitsToCheck, unit) + end end else for j = 1, 4 do