Yes, with "died" i meant "fell below 0 hp" as in "fell on the ground after getting hit and vanishing from battlefield". Sorry if i wasn't clear enough with what i meant.
So basically, its like that (for example):
Army A: Sovereign, 2 Militias
Army B: Widow
Sovereign runs in front, fights against widow. Widow beats him till he falls. After that, you can do two things: either finish the widow with the militias yourself or press the autocalc-button to end the fight. Lets say you win either way. What happens next?
You fought yourself: Unit gets transported to next city, Militias get XP, Sovereign immobilized for x turns, and of course you loose mana.
You pressed the autocalc: Sovereign survived the battle with one hp(the screen shows he lost (HPbeforebattle-1), got xp, stands on the same tile he was before, maybe has moves left(if he should have without dieing). No manaloss, no teleport.
Is that better to understand?