API Question About Assigned Roles

How do you go about programmatically determining the assigned role of a player in your group/raid?

I found only one entry in the Wikis about it and it seems to be exclusive to LFG.

Surely there’s a way to do this, right?

ElvUI does it. Just search their code.

Looks like UnitGroupRolesAssigned

UnitGroupRolesAssigned doesn’t exist in Classic or BCC (yet???).

UnitGroupRolesAssigned(unit) is the one I mentioned that is at least described in the Wiki as only related to LFD/LFG.

I did Classic and BC the first time around and have no intention of doing them again - I’m only interested in Retail.

There’s an inspect function that’ll give back the specialization of group members - all but one of the specializations only really has one role - the exception being Discipline Priest (viable as either DPS (ranged) or Healing).

I built a table of all of the SpecID number and classified them by role and I’m gonna use that for now. This is aside from my MacroParser project - I was working on a quick addon for helping keep RBG groups balanced as member drop during the evening.

Thanks, though.

Disc isn’t viable as dps in any group setting.

1 Like

Won 4 of 5 RBGs yesterday with a Disc Priest as one of our 3 ranged players.

They do decent damage and can off-heal just fine.

I didn’t say they’re not good. I said they’re not dps.

There are Discipline Priests in the top 100 RBG DPS rankings.

I don’t priest, but I understand there are talent builds that emphasize the offensive nature of the spec more than healing.

Perhaps that’s the difference?

In any case, the one with use did just fine in a DPS role.

https://www.warcraftlogs.com/zone/statistics/26/#class=Any&aggregate=amount

That’s Raid data. Very different. :slight_smile:

Then you might as well classify Holy Pallies and MW Monks as dps and re-classify Prot Pallies as healers while you’re at it because those statements are just as accurate as the ones you’re making.