My bot randomly disconnects when it uses rogue's FootWork ability. I get kicked out into the "High Latency or Spam" Screen and have to wait for a minute to reconnect.
The timer is set to 1000 ms. I tried raising it, but that seemed to result in more frequent disconnects. I check every ability I use for cooldown using the code below which is pretty much copy pasted from the game files:
Does anyone have any idea what might be going wrong?
protected function is_in_cooldown(Skill:Object):Boolean
Player = Game.world.myAvatar;
effective_haste = (1 - Math.min(Math.max(Player.dataLeaf.sta.$tha, -1), 0.5));
if ((now - Game.world.GCDTS) < Game.world.GCD)
if (Skill.OldCD != null)
_local4 = Math****und((Skill.OldCD * effective_haste));
_local4 = Math****und((Skill.cd * effective_haste));
if ((now - Skill.ts) >= _local4)