group: add missing update event

This commit is contained in:
shagu
2016-12-19 11:49:26 +01:00
parent ebc9f3cafa
commit c5ca003882
+3 -3
View File
@@ -38,7 +38,7 @@ pfUI:RegisterModule("group", function ()
return
end
if event == "RAID_TARGET_UPDATE" or event == "PLAYER_ENTERING_WORLD" then
if event == "RAID_TARGET_UPDATE" or event == "PLAYER_ENTERING_WORLD" or event == "PARTY_MEMBERS_CHANGED" then
local raidIcon = GetRaidTargetIndex("party" .. i)
if raidIcon then
SetRaidTargetIconTexture(pfUI.uf.group[i].hp.raidIcon.texture, raidIcon)
@@ -48,7 +48,7 @@ pfUI:RegisterModule("group", function ()
end
end
if event == "PARTY_LEADER_CHANGED" or event == "PLAYER_ENTERING_WORLD" then
if event == "PARTY_LEADER_CHANGED" or event == "PLAYER_ENTERING_WORLD" or event == "PARTY_MEMBERS_CHANGED" then
if UnitIsPartyLeader("party"..i) then
pfUI.uf.group[i].hp.leaderIcon:Show()
else
@@ -56,7 +56,7 @@ pfUI:RegisterModule("group", function ()
end
end
if event == "PARTY_LOOT_METHOD_CHANGED" or event == "PLAYER_ENTERING_WORLD" then
if event == "PARTY_LOOT_METHOD_CHANGED" or event == "PLAYER_ENTERING_WORLD" or event == "PARTY_MEMBERS_CHANGED" then
local _, lootmaster = GetLootMethod()
if lootmaster and pfUI.uf.group[i].id == lootmaster then
pfUI.uf.group[i].hp.lootIcon:Show()