From 37e7b5af8d30e5b04069738b671dc84a72c8d9ae Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Tue, 6 Jan 2026 20:43:12 +0100 Subject: [PATCH] unit updateframes_fix Fixed "Use Raid Frames to display group members" not updating the frames when people recieved dmg --- api/unitframes.lua | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index e9a4eb81..b94592f0 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -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