You can drink a potion of magic and healing (if the commander is injured) before the battle. You can drink a potion of magic until you're full; even if you have 100 mana, there's nowhere to put it, and if the hero flees during the battle, it doesn't matter.
Auto-translated