View Single Post
04-30-18, 05:21 AM   #3
Edik
A Murloc Raider
 
Edik's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 5
In 7.3 you won't need any caching. In 8.x is quering Aura by name completely removed. So if you have mutiple checks in single line I guess caching is worth to try. If you do by aura index from 1 to 40 old fashioned way you won't need to cache. Just imagine if you have this in your old code.

Lua Code:
  1. function WWM:isEating() -- am I bussy by feeding self?
  2.   return UnitAura(ID_PLAYER, BUFF_FOOD) or UnitAura(ID_PLAYER, BUFF_DRINK) or UnitAura(ID_PLAYER, BUFF_REFRESHMENT) or UnitAura(ID_PLAYER, BUFF_DRINK_AND_FOOD)
  3. end

I had my wrappers a small glitch I did fix it original post.

Last edited by Edik : 04-30-18 at 05:29 AM.
  Reply With Quote