Auto-translated
I apologize for interrupting your conversation again.
I just checked my final save in "The Restoration of Erathia" where Arie storms a castle without a hero and gains a level. I played sub-optimally to prolong the battle. The first 3 times, the battle wouldn't repeat for some reason. Then, from the 4th to the 7th attempt, everything (monster damage, wall damage, wall penetration) started repeating exactly. Although I made absolutely identical moves in all 7 cases.
Yes, everything is very complex in Heroes of Might and Magic I, especially in terms of functions.