Addon creating SoulShard Bar
I had an addon creating a SoulShard bar fro Afflic locks pre-7.0
I have updated it so that is shows and (seems) to work without issue for all Lock specs, however.. I get this error: Code:
Message: ...terface\AddOns\oUF_Diablo\modules\oUF_SoulShards.lua:49: attempt to index local 'orb' (a nil value) Lua Code:
Line 49 being the "orb.fill:Hide()" line in the else condition at the end. Commenting out that leads me to line 50, then 51. Commenting all 3 of those out removes the error, however it breaks the addon. With the lines commented out, the soul shards are added to the bar as they are built, but are not removed when consumed. Not commented out, the soul shards are removed from the bar as expected, but I am spammed with this error countless times while in combat. Since it's returning with an error, it is also affecting other aspects of the UI addon I have built this into, so leaving the lines and ignoring the errors is not really an option. |
I'd guess that your "max" is bigger than you think it is and it is trying to handle an orb that is out of range.
Is there a reason one loop uses bar.maxOrbs and the other just max? |
Quote:
Thanks for pointing that out, not sure how I missed it. |
np. sometimes all it needs is a second pair of eyeballs. or a second single eyeball. or a screenreader with a second set of hears - don't mean to be mean to the eyeless.
|
One other point to mention is that soul shards are now handled natively in the ClassIcons element. There's not an official oUF update yet, but you can use lightspark's update until there is.
|
All times are GMT -6. The time now is 05:16 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI