feat: expand unit capacity to 100 buttons and add RAID_ROSTER_UPDATE event handling

This commit is contained in:
Bluewhale1337
2026-07-21 22:46:14 +02:00
parent 2b1ccb03c5
commit a3f3d9e4c6
5 changed files with 85 additions and 4 deletions
+2 -4
View File
@@ -402,6 +402,7 @@ function HealBot_Action_SetHealButton(index, unit)
return nil
end
local button = getglobal("HealBot_Action_HealUnit" .. index);
if not button then return nil end
button.unit = unit;
if unit then
table.insert(HealBot_Action_HealButtons, button);
@@ -466,10 +467,7 @@ function HealBot_Action_PartyChanged()
local checked_end = 0;
headerno = 0;
for j = 1, 41 do
HealBot_Action_SetHealButton(j, nil);
end
for j = 51, 60 do
for j = 1, 100 do
HealBot_Action_SetHealButton(j, nil);
end
HealBot_Action_SetHealButton();