He must open way for main hero and can't die (damage immunity). Then he goes back home. (kill). I wonder why the game is obsessed with his script.
I have a lot of interactivity between AI heros. Each one has a specific task, then vanish. Here is the last invasion force (7 planets alliance). They have to open the path: