Initial testing of real files. Melee range for sure the interval is 2000ms.
If monster can't reach the target its 1000ms ( as if no pathing found )
If monster is far away but can reach the target its still 2000ms
( The dragon is set to 100% chance for aoe, frontal and self healing )
1st video showing 1000ms spam when it can't reach target
2nd vid showing a far away dragon that found a path to summon and even tho range is pretty high, it stops casting every second and changes to 2s interval.
Not sure what else would trigger the 1000ms cooldown, perhaps target swap too? Would explain the demon video going ape spam. Need more testing and perhaps try to run a debugger now that I've set the files again.
Edit:
Seems like when something gets in path of the monster it also goes 1000ms?
Watch and share 2019-04-15 20-58-47 GIFs on Gfycat
gfycat.com