Core/SmartAI: Implement SMART_TARGET_CLOSEST_FRIENDLY. Parameter is dist...

...ance to search for.