Quantcast wowapi GCD deviation - WoWInterface
Thread Tools Display Modes
04-01-19, 02:07 AM   #1
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
04-01-19, 08:18 PM   #2
A Pyroguard Emberseer
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,101
Unless someone pipes up with more information, here's a few things to keep in mind:
  • The GCD without Haste is 1.5 seconds
  • With 50% Haste the GCD is 1 second
  • With 100% Haste the GCD is 0.5 seconds
  • The GCD won't drop below 1 second
  • More than 50% Haste will drop a spell below 1 second
That means that if you have enough Haste to make a spell cast or refresh in 0.75 seconds, you will still have to wait 0.25 seconds before you can cast it again because of the GCD cap of 1 second.

Does that help?
  Reply With Quote
04-03-19, 05:24 AM   #3
A Defias Bandit
Join Date: Aug 2009
Posts: 2
thanks for reply, but its like general knowledge, that tests were done with rogue, so gcd is 1sec and doesnt change for all skills but vendetta, so it is not the answer will test with some other classes, maybe it's some rogue only related stuff
  Reply With Quote

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

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