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
for i = 1, 40 do
local frame = pfUI.uf.raid[i]
if frame and frame.id and frame.id ~= 0 then
pfUI.uf.unitmap["raid" .. frame.id] = frame
if frame and frame.id and frame.id ~= 0 and frame.label then
-- ✅ Jetzt auch party-Frames in Raid-Frames unterstützen
local unitstr = frame.label .. frame.id
pfUI.uf.unitmap[unitstr] = frame
end
end
end
-- Rebuild party mappings
for i = 1, 4 do
local frame = _G["pfGroup" .. i]
if frame and frame.label == "party" then
pfUI.uf.unitmap["party" .. frame.id] = frame
-- Rebuild party mappings (nur wenn nicht als Raid verwendet)
if C.unitframes.raidforgroup ~= "1" then
for i = 1, 4 do
local frame = _G["pfGroup" .. i]
if frame and frame.label == "party" then
pfUI.uf.unitmap["party" .. frame.id] = frame
end
end
end
end