possible fix for raid frames not showing up when pfui raid frames are hidden

This commit is contained in:
Meow
2026-04-11 21:35:22 +02:00
parent f49bf4f1a9
commit 93c4166052
+12 -2
View File
@@ -46,10 +46,20 @@ pfUI:RegisterModule("turtle-wow", "vanilla", function ()
-- Check if pfUI is handling group or raid for the current situation
local function pfUIHandlesGroupOrRaid()
local disabled = C["disabled"] or {}
if GetNumRaidMembers() > 0 then
return C.unitframes.raid and C.unitframes.raid.visible == "1"
if not C.unitframes.raid then return false end
-- Hide Turtle frames if: pfUI raid module is active, OR player disabled visibility
if disabled["raid"] == "1" then
return C.unitframes.raid.visible ~= "1"
end
return C.unitframes.raid.visible == "1"
else
return C.unitframes.group and C.unitframes.group.visible == "1"
if not C.unitframes.group then return false end
if disabled["group"] == "1" then
return C.unitframes.group.visible ~= "1"
end
return C.unitframes.group.visible == "1"
end
end