oUF

99.9k Downloads

LFDRole API changes (Cataclysm)

Evilpaul opened this issue ยท 4 comments

commented

Cataclysm has changed the API for UnitGroupRolesAssigned(unit)

the new API is:
role = UnitGroupRolesAssigned(Unit)

the return value role is of type string, with possible values of "NONE", "TANK", "HEALER", "DAMAGER"

(return values are what I have seen on the beta and read in Blizzard UI code)

commented

here is a possible solution..

http://gist.github.com/565326

commented
  1. I'd prefer you posting format-patches or clean git branches. The main reason for this is that you should get credited for the code you contribute.
  2. I currently strive to support both live and cataclysm (take a look at the cc-events branch).

I'm not sure if I want to push 1.5 early, or when cataclysm is closing in yet either.

commented

OK, to me a while to figure it out but this might work....

http://gist.github.com/565585

commented

Pushed :)