mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-12 08:30:00 +00:00
unit updateframes_fix
Fixed "Use Raid Frames to display group members" not updating the frames when people recieved dmg
This commit is contained in:
+11
-7
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user