WeakAuras

WeakAuras

200M Downloads

Glow Effect on Duplicate Raid Unit Frames does not work

Jakobud opened this issue ยท 7 comments

commented

Description

I created a WeakAura that adds a glow to a unit frame whenever a raid member has a the debuff "Weakened Soul" (from when a priest casts Power Word: Shield on the unit).

In a 10 man raid group, I have 10 unit frames. But two of those players are marked as raid tanks. So there are 2 (larger) additional unit frames that I have for the tanks. So essentially the tanks have duplicate unit frames: One unit frame in the raid group and One unit frame in the raid tank group.

image

Here is an example using Pitbull Unit Frames. You can see that it's a 10 man raid group, but the 2 bigger unit frames are for the 2 characters who are marked as raid tanks.

The Problem:

I noticed that when my weakaura glow appears for my tanks, sometimes the glow is applied to the raid unit frame and sometimes to the tank unit frame, but never for both. So for example if I have a tank in my group named "DKTank" if I look at his normal raid unit frame it would not have the glow effect on it but if I look at DKTank's raid tank unit frame (the bigger one), it would have the glow effect on it. And sometimes it's swapped where the raid unit frame has the glow but the raid tank unit frame does not.

I'm not sure if Weakauras is maybe confused because a unit shows up with multiple raid frames.

It seems like it should do the glow for both of them. Either that or you should somehow be able to control whether or not it shows up for one or the other (or both).

WeakAuras Version

5.3.7

World of Warcraft Flavor

Wrath of the Lich King Classic

Tested with only WeakAuras

  • Yes
  • No

Lua Error

There are no lua errors.

Reproduction Steps

  1. Create a raid
  2. Mark a character as "Main Tank"
  3. Have unit frames that show both raid unit frames as well as main tank unit frames
  4. Cast Power Word Shield on that character
  5. You will see the glow effect only on 1 of the unit frames for that character. I will show up on either one but not both.

Last Good Version

I'm not sure. I just made this WA yesterday

Screenshots

image

image

image

Export String

`!WA:2!1z1tVTXXvCjXdUqihAOAudsBb2Qcl4I2qBrzh7uuxdsgklgqjZUKkYPx4o7UVD3XA3zMmZSuIPOhmrpeGK2cWpa5ap0t5e7xGe)jyHqrpwuOB5QUe0EQVzwsl5IAcWLZm7BE)53V3F4Q7vnRAy1Wp7HsEUoLYa5toAq3oh2EgnGZ6ZZLbWQ(NsI5D(GPp7tGU(h09d74gWt5YpSc(r8lcPk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dgJqY5Qec2R4JlL7hVsZiotlERgbbyfgttsDW8eLzDWy5imncZ9BndZgCHytBL3zZI9ph36tcoXWHSq)eGgNOF(fKCSceDSGJPHiz3a32mLtc)hw8ZWWYeK8WMfASkmpvt3Chp3atbY2(kklof8752PD)bfQnlg5j)uSycPoXpCN7E)FPZo39bMhVp(4E3X8yhBfrPcl5iRUsS5pM7Al7Ww(wsgKuSS7ABwB(s5qBK00SyTMg0DZc16nv0pfWfBobje94mcd75GZj9eB96zRmE4qdi7nXaQ9rnCtFLDWQpntG65sQX0ms6hvcSpFbB80s2OYucJMzB38EfBS3laIc6RL2MR3Oy)Mm0fpFzdjBNsPcqNkunXiQP0R4lAMrOSpQy)IVO4VGF)8Bu8Nk(Z(cKub9fkbvssjSqrEQck(P7zEVruugJ4NJCioOAXe519rLhrJxFM0s(gd0uJXD9CzQ4NKO1c1V62328FgQr53EaKPoknmNiV9U7ovbPr2bEfVHljvKqQGnPkXluvBphxgaTnv9kpXBtJzCjSWU2tBlLCPYBzICh0vE7124Fj(zVE8hdYaQbxRGSjpBv5ZWHc0OXn72EVbIFWYXKMB(bufXpfRT9vqgMy6wVw9A7mtZdwKZ)9g9nBrdfvFmoVX5vgjCz5W89mJRmiIF)wUTBFOOkMo1AHjWcFxtIG7PMsHNp3oBdPsIMuPEonC(V7E95hKV)D35KrskZytizg2OfcTfp)X3yEzMrl7C7vxD1kZmenTKxMSmu8AAk6sQQCVxTDRD)QJ(7p9)o`
commented

For all addons i have tested MT frames, and mainly default frames & vuhdo, they didn't have a consistent name different from the raid/group frames name, so there is no way to make a priority on them that work for all cases.

Alternative is to make the trigger track a maintank unit, and select manually which frame the external glow will apply to, repeat for each tank unit.

commented

Upon further investigation I think the problem lies in that the WA will only apply the glow to the the first unit frame it finds for that unit, in the case that there are duplicate unit frames for a unit.

I turned on the default Blizzard raid unit frames, so I have that and also the Pitbull Unit Frames showing:

image

You can see that the WA only applies it to the blizzard main tank unit frame. Not the Pitbull Unit Frames.

Is it possible for the WA to apply to all unit frames of a particular unit and not just the first one it "finds"?

commented

You will have to handle this with custom code, there is an example for glowing multiple frames for a unit at https://github.com/mrbuds/LibGetFrame#glow-every-frames-for-your-target

commented

Looks like that requires completely separate libraries. WeakAura doesn't have an option for affecting all frames? Does the same thing happen if I made a weakaura that adds an Icon for example to a raid frame? It will only add the icon to one frame but not all of them for that unit?

commented

Looks like that requires completely separate libraries

It's the library WeakAuras use to find the frames, you can access it from WeakAuras.GetUnitFrame

WeakAura doesn't have an option for affecting all frames?

No, you will have to handle this with custom code

It will only add the icon to one frame but not all of them for that unit?

Yes

commented

Okay looking at the code I do see that WA is using LibGetFrame-1.0. Where would I put in custom code in the WA to specify the unit frame?

commented

Please ask on discord or check the wiki, we use github for bugs & feature request and this conversation has gone offtopic