Help rectifying small batch of code 8.0 broke.
Hi, I've gathered small bits of code from this forum and the WoW forum over the years and 8.0 seems to have broken two bits of code. Would appreciate any help. I'm sure it's a simple fix.
Code 1: Lua Code:
This just loots money on mobs. Code 2: Lua Code:
This just shows the dispel effect around dispellable debuffs on any class/spec. Both simply don't function since the patch. |
I use this for highlighting debuffs
Lua Code:
With some classes getting a dispel for enrage effects back, might want to use this Lua Code:
|
[quote=Sylen;328958]I use this for highlighting debuffs
Lua Code:
Unless you're declaring these elsewhere prefixed by "local" you're leaking variables into the global scope. There have been a few occasions where Blizzard has accidentally done this themselves, so AddOn code which also was doing this started causing problems by touching the global "_" variable in secure code. |
Thanks for pointing this out. I must have missed this one when re-writing my UI for BFA.
|
[quote=Torhal;328966]
Quote:
|
Just as an update, I tested both of those bits of code individually in isolation, with no other addon(s)/code active. They were working fine pre pre-patch, so something in the API changed. Not sure how to go about finding that out.
|
It seems like GetLootSlotInfo changed.
7.3.5 Lua Code:
8.0 Lua Code:
This should work. Lua Code:
And for UnitAura they got rid of the 2nd return value (rank) |
Quote:
|
Quote:
Lua Code:
|
All times are GMT -6. The time now is 01:33 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI