thanks! Yep, when the enemy gets to half health it tries to escape if it can see you.
Yeah I thought that detail was really cool!