mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 09:56:03 +00:00
group: add missing update event
This commit is contained in:
+3
-3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user