Is that towns man's walking animation? It's too much at leisure for someone trying to get off battle ground. They're becoming easy targets (fleeing units should be easy targets I think, but not that easy).
And my suggestion of implementing this flee behavior(if my assumption is correct):
I suppose the AI would always pick a target agent and attack until the agent is eliminated. We can place an dummy hostile agent way behind the battlefield(so it's not automatically picked by AI). When a unit is to be set to flee, lock its target on that dummy agent. When one side win completely, eliminate those two agents.
EDIT: Sorry I just found another topic with the same thing. Locked
And my suggestion of implementing this flee behavior(if my assumption is correct):
I suppose the AI would always pick a target agent and attack until the agent is eliminated. We can place an dummy hostile agent way behind the battlefield(so it's not automatically picked by AI). When a unit is to be set to flee, lock its target on that dummy agent. When one side win completely, eliminate those two agents.
EDIT: Sorry I just found another topic with the same thing. Locked