Adjusts IsInOptimal to check MaxTargetingRange (which changes depending on effects like sensor dampening) and adjusts optimal to never be outside targeting range.