View Single Post
08-17-13, 06:12 PM   #1
nishay77
A Murloc Raider
Join Date: Aug 2013
Posts: 8
I need some help understanding how raid frame sorting works...

So I am making a simple addon to calculate the total amount of absorb heals currently on everyone in my raid. I have a separate frame for each raid member and anchored it to each raid member's unit frame.

Here is the problem:
I refer to each person in the raid group by UnitId that may or may not correspond to which position they occupy on default frames.

For example, Player A is occupying "raid6" (1st frame in group 2) on my raid frames (on default raid frames as well). However, it turns out Player A is the raid leader, so Player A's UnitId is "raid1". So if i update my addon for Player A, "raid1"'s frame is updated instead of "raid6". Domino effect -- "raid2" is now occupying "raid1" on my frames, etc...

Can someone shed some light on how to properly determine which frame I should update? Although Blizzard frames put Player A in its "raid6" (which is reflected in default raid frames after I move him there), his UnitId is still "raid1".

Any help is appreciated here. Thanks!
  Reply With Quote