From d5ef7c1a07e05dfde35a7cacdacc20dd5c5eab70 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 10 Sep 2017 14:33:40 +0200 Subject: [PATCH] unitframes: refresh raidframes on group disband --- api/unitframes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index c31f656f..31c8b48e 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -559,10 +559,10 @@ function pfUI.uf:RefreshUnit(unit, component) -- show groupframes as raid if pfUI_config["unitframes"]["raidforgroup"] == "1" then - if GetNumPartyMembers() > 0 and strsub(unit:GetName(),0,6) == "pfRaid" then + if strsub(unit:GetName(),0,6) == "pfRaid" then local id = tonumber(strsub(unit:GetName(),7,8)) - if not UnitInRaid("player") then + if not UnitInRaid("player") and GetNumPartyMembers() > 0 then if id == 1 then unit.id = "" unit.label = "player"