XEPOMAHT, thanks. Well, I understand executing the function at 5081488 certainly has some problems, but on the other hand, it's quite annoying for players to see AI heroes standing for so long before moving. I mean, something is wrong in the mods, but I don't know where exactly so that I wrote another script to boost AI speed and cause some other troubles.
Would you mind simplifying my script a bit without calling 5081488?
Berserker, it is. In my full script I disable AI DD and limit the quantity of AI heroes. Yet the function at 5081488 is still crucial for boosting the speed of AI.