mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-09-10 09:20:21 +00:00
Refactor + rewrite: implement independent pet heal toggles and integrate into layout rendering and emergency monitoring logic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user