AI server: started replacing range checks with inherited Unit class logic (also extended it a little for some later porting).