unitframes: hide self in group without a group

This commit is contained in:
shagu
2019-04-10 22:36:37 +02:00
parent 710aa73fb6
commit a4e5fccbe3
10 changed files with 10 additions and 18 deletions
+1 -1
View File
@@ -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