And in online games, they are definitely technically prohibited in both HotA and Heroes of Might and Magic.
But I found where I got this idea from – these rules were used in offline tournaments that I participated in.
More precisely, not just the rules, which could change from tournament to tournament, but they were removed from the executable file used for these tournaments (HOMM Tournament Edition or TE version).