GetRaidRosterInfo and GROUP_ROSTER_UPDATE
Some issues with these two.
I am in a raid. Logout. Log back in. I receive 3 invocations of GROUP_ROSTER_UPDATE, and I fire GetRaidRosterInfo as a result. It comes back with "name"= nil "class"=nil "zone"=nil.
If I call it again later it then comes back with the right information.
I am only calling GetRaidRosterInfo to get the "role" (who is the tank) but other than that I do not think I need it.
As an aside, the methods of enumerating raid members are to make up my own "unit" handles depending on I am in a group or in a raid, eg "player" "party1" or "raid1" "raid2". Another way is to get the unit names from the Blizzard's raid frames by constructing the handles "CompactRaidGroup1Member1" or "CompactPartyFrameMember1" but that is as "bad" as constructing the unit handles in the first place.
Because GetRaidRosterInfo cannot be trusted to return the right information maybe I can skip it altogether. Does anyone know a replacement or another way to enumerate party/raid members and their roles ?
|