What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

GlobalCooldownLeft Bug?

tuanha

Well-Known Member
Joined
Nov 29, 2011
Messages
6,998
Reaction score
124
Hi guys,

This is GlobalCooldownLeft description

Code:
<member name="P:Styx.Logic.Combat.SpellManager.GlobalCooldownLeft">
            <summary>
            Returns the amount of time left on Global Cooldown.
            <returns> TimeSpan with remaining time for the Global Cooldown Timer, TimeSpan.Zero if it's not running. </returns>
            </summary>
</member>

But as I do a simple log

Code:
Logging.Write("CurrentCastTimeLeft: " + Me.CurrentCastTimeLeft.TotalMilliseconds.ToString() + " - GlobalCooldownLeft: " + SpellManager.GlobalCooldownLeft.ToString());

This is the result

Code:
CurrentCastTimeLeft: 2437 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 2367 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 2297 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 2226 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 2156 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 2086 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 2016 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 1945 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 1875 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 1805 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 1735 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 1665 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 1595 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 1525 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 1455 - GlobalCooldownLeft: 00:00:01.4760000
CurrentCastTimeLeft: 1385 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 1315 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 1245 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 1174 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 1008 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 938 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 868 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 798 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 728 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 658 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 589 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 520 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 451 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 382 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 312 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 242 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 172 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 103 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 34 - GlobalCooldownLeft: 00:00:00
CurrentCastTimeLeft: 0 - GlobalCooldownLeft: 00:00:00

As you can see, GlobalCooldownLeft return only 00:00:01.4760000 or 00:00:00 and NOT the timeleft till GlobalCooldown go off

This is a bug or are other way to check REAL GlobalCooldownLeft it?

Thank you
 
Looks like your casting something longer then 1.5 seconds. The global cooldown can be reset before you finishing casting something with that long of a casttime.
 
Looks like your casting something longer then 1.5 seconds. The global cooldown can be reset before you finishing casting something with that long of a casttime.
this is not the problem he is showing ;)
his problem is that the casting (TotalMilliseconds) is correct but GCD-Info is wrong, after 500ms auf casting time, the GCD is still at 1.47 instead of 0.97
and at 1385ms casttime the gcd is 0 but should be (if 2086 casttime is the beginning) 0.77 / 0.76
 
Thank Stormchasing, that the problem.

PS: I'm a big fan of your Paladin/Priest CC :D
 
I think i find the way to work around the GlobalCooldownLeft bug by checking instant cast cooldown

Run this
Logging.Write("CurrentCastTimeLeft: " + Me.CurrentCastTimeLeft.TotalMilliseconds.ToString() + " - Cleanse Spirit: " + SpellManager.Spells["Cleanse Spirit"].CooldownTimeLeft.TotalMilliseconds.ToString() + " - Flame Shock: " + SpellManager.Spells["Flame Shock"].CooldownTimeLeft.TotalMilliseconds.ToString() + " - Frost Shock: " + SpellManager.Spells["Frost Shock"].CooldownTimeLeft.TotalMilliseconds.ToString());

Will return this
CurrentCastTimeLeft: 2347 - Cleanse Spirit: 853 - Flame Shock: 833 - Frost Shock: 813
CurrentCastTimeLeft: 2223 - Cleanse Spirit: 729 - Flame Shock: 708 - Frost Shock: 688
CurrentCastTimeLeft: 2097 - Cleanse Spirit: 602 - Flame Shock: 580 - Frost Shock: 558
CurrentCastTimeLeft: 1966 - Cleanse Spirit: 470 - Flame Shock: 437 - Frost Shock: 404
CurrentCastTimeLeft: 1814 - Cleanse Spirit: 306 - Flame Shock: 273 - Frost Shock: 240
CurrentCastTimeLeft: 1652 - Cleanse Spirit: 142 - Flame Shock: 109 - Frost Shock: 76
CurrentCastTimeLeft: 1431 - Cleanse Spirit: 0 - Flame Shock: 0 - Frost Shock: 0
CurrentCastTimeLeft: 1265 - Cleanse Spirit: 0 - Flame Shock: 0 - Frost Shock: 0
CurrentCastTimeLeft: 1096 - Cleanse Spirit: 0 - Flame Shock: 0 - Frost Shock: 0
CurrentCastTimeLeft: 931 - Cleanse Spirit: 0 - Flame Shock: 0 - Frost Shock: 0
CurrentCastTimeLeft: 767 - Cleanse Spirit: 0 - Flame Shock: 0 - Frost Shock: 0
CurrentCastTimeLeft: 604 - Cleanse Spirit: 0 - Flame Shock: 0 - Frost Shock: 0
CurrentCastTimeLeft: 440 - Cleanse Spirit: 0 - Flame Shock: 0 - Frost Shock: 0
CurrentCastTimeLeft: 269 - Cleanse Spirit: 0 - Flame Shock: 0 - Frost Shock: 0
CurrentCastTimeLeft: 106 - Cleanse Spirit: 0 - Flame Shock: 0 - Frost Shock: 0
CurrentCastTimeLeft: 0 - Cleanse Spirit: 0 - Flame Shock: 0 - Frost Shock: 0

So GlobalCooldownLeft definitively Bugged I guess.
 
Back
Top