I don't know if cakes restore skills... Just TP.
But yeah, I won anyways.
The healing worked properly in the final dungeon.