The AI is not contained in behaviour scripts, but in code. However, it is heavily parametrised and can be influenced in many ways. I don't know the exact answer to your question, but a good place to start is https://docs.larian.game/Combat_AI