UnitAura/UnitBuff/UnitDebuff changes in BfA
Hi all,
Before BfA, I was able to check whether the specific buff/debuff exists or not by following lines of code. Lua Code:
But, since the querying with spell name is gone from BfA, what would be the best way to achieve the same behavior? I currently have the following tho... Lua Code:
Do I really have to loop through all the buffs to check? |
No. There is AuraUtil.FindAuraByName
https://www.townlong-yak.com/framexm...uraUtil.lua#32 Example: https://github.com/zorker/rothui/blo...a/core.lua#L60 |
Quote:
Why did the Blizzard make such decisions...? |
They don't make us privy to their internal logic but there are numerous reasons to make the type of architectural changes they've made in the API. It's not uncommon for this type of thing to happen as projects age, grow in complexity, and need to be balanced for better maintenance, to better integrate with new development priorities, or to provide a more solid base for future development.
|
All times are GMT -6. The time now is 05:09 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI