unit updateframes_fix

Fixed "Use Raid Frames to display group members" not  updating the frames when people recieved dmg
This commit is contained in:
Meow
2026-01-06 20:43:12 +01:00
parent bf20d3ea33
commit 37e7b5af8d
+11 -7
View File
@@ -31,17 +31,21 @@ pfUI.uf.RebuildUnitmap = function()
if pfUI.uf.raid then if pfUI.uf.raid then
for i = 1, 40 do for i = 1, 40 do
local frame = pfUI.uf.raid[i] local frame = pfUI.uf.raid[i]
if frame and frame.id and frame.id ~= 0 then if frame and frame.id and frame.id ~= 0 and frame.label then
pfUI.uf.unitmap["raid" .. frame.id] = frame -- ✅ Jetzt auch party-Frames in Raid-Frames unterstützen
local unitstr = frame.label .. frame.id
pfUI.uf.unitmap[unitstr] = frame
end end
end end
end end
-- Rebuild party mappings -- Rebuild party mappings (nur wenn nicht als Raid verwendet)
for i = 1, 4 do if C.unitframes.raidforgroup ~= "1" then
local frame = _G["pfGroup" .. i] for i = 1, 4 do
if frame and frame.label == "party" then local frame = _G["pfGroup" .. i]
pfUI.uf.unitmap["party" .. frame.id] = frame if frame and frame.label == "party" then
pfUI.uf.unitmap["party" .. frame.id] = frame
end
end end
end end
end end