Restore all mana at the end of fights?

Like the title says I'm not sure how to restore only mana after a fight is over. I know about Recover All but I don't want you to get health back so that's not an option. I also tried creating a state for recovering mana but this just increases my maximum amount without refilling the bar. 
Use the change MP event command (NOT the change parameter one), with a number that is higher than any MaxMP

Original thread: https://forums.rpgmakerweb.com/threads/restore-all-mana-at-the-end-of-fights.48643/