Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-01-19, 02:07 AM   #1
Immortalhz
A Defias Bandit
Join Date: Aug 2009
Posts: 2
wowapi GCD deviation

Havent noticed this behaviour before, but it is what i get today
]
code is
Lua Code:
  1. Start, CD, enabled, modRate = GetSpellCooldown(61304)
  2. print("Left = "..getSpellCD(61304)..". Start = "..Start..". CD = "..CD..". GetTime = "..GetTime())

Lua Code:
  1. function getSpellCD(SpellID)
  2.     local Start, CD = GetSpellCooldown(SpellID)
  3.     if CD == 0 then
  4.         return 0
  5.     end
  6.     local MYCD = Start + CD - GetTime()
  7.     if MYCD >= 0 then
  8.         return MYCD
  9.     elseif MYCD < -1111 then
  10.         return 111
  11.     end
  12. end

when i just spam any gcd skills, sometimes it just gives me wrong info, gcd is 0.9+ and next frame we dont have gcd, its minor issue, but still interesting if anyone expiriences this and how to make workaround, i ran out of ideas
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » wowapi GCD deviation


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