* Added max distance check on chasing enemies. Untested but should be working.