Make avoid ai pattern walk towards the target if they are too far away from each other.
Authored by: utunnels 2011-09-27
Parent: [r3479]
Child: [r3481]