Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-05-21, 02:21 PM   #1
Bakkon
A Defias Bandit
Join Date: Apr 2021
Posts: 3
API not updating inside Events

hey guys

i was made a simple mod to see my mana regeneration but its not updating the value properly

Lua Code:
  1. if event == "UNIT_AURA" then
  2. local base, cast = GetManaRegen()  
  3. base = base * 2
  4. print("mp2 : ", base)

the value isn't updating properly. its like one step behind. when i trigger it by applying an aura i get the old value when the aura is on and when the aura is off i get the value as if it was on

how could i fix this ??

im trying this on classic

tyvm
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » API not updating inside Events

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off