View Single Post
09-30-12, 07:08 PM   #15
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Originally Posted by Annekynn View Post
Sorry to resurrect an old thread but this code has ceased working due to changes in 5.x , specifically this bit:



Can any of you smart folks fix that so it works?
Code:
for i = 1 , GetNumGroupMembers() do
  local name, _, subgroup = GetRaidRosterInfo(i)
  if (name == Name(unit)) then
    return subgroup
  end
end
should be sufficient

Edit:
Ah, if there's any PARTY_MEMBERS_CHANGED, RAID_ROSTER_UPDATE events they should both be replaced with GROUP_ROSTER_UPDATE.
  Reply With Quote