mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-24 16:46:04 +00:00
unitframes: hide self in group without a group
This commit is contained in:
+1
-1
@@ -1050,7 +1050,7 @@ function pfUI.uf:RefreshUnit(unit, component)
|
||||
|
||||
-- hide self in group if solo or hide in raid is set
|
||||
elseif unit.fname == "Group0" or unit.fname == "PartyPet0" or unit.fname == "Party0Target" then
|
||||
if ( C["unitframes"]["group"]["hide_in_raid"] == "1" and UnitInRaid("player") ) then
|
||||
if GetNumPartyMembers() <= 0 or ( C["unitframes"]["group"]["hide_in_raid"] == "1" and UnitInRaid("player") ) then
|
||||
unit:Hide()
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user