AI now detects enemies and will stop any other tasks to attack them.