I apologize for interrupting your conversation again.
I just checked my final save in Heroes of Might and Magic, 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 somehow didn't want to repeat. Then, from the 4th to the 7th time, absolutely everything (monster damage, wall damage, wall penetration) started to repeat exactly. Although I made absolutely the same moves in all 7 cases.
Yes, everything is very complicated in Heroes of Might and Magic 1, especially in the functions.
Added 7 minutes ago
It's not essential. You can make any moves. The main thing is that the hero gains a level.
In order to be able to talk about something, we need specific data.
P.S. Tomorrow I will try to study the situation in the hero - neutral battle.;)
Sincerely, VDV_forever