If the heroes have moved to their cities (the two that are placed at the beginning), then everything is going according to the script. The goat moves to the city on its own; there is no need to eliminate it near the teleport. There is also this issue where, if a hero blocks the path, the demoness stands still, and the script fails. In short, for me (and for some, for some reason, not), she always reaches the city, and the battle starts. At the end of the battle, there is a cutscene and the end. And as you can see, it wasn't just me who had a successful playthrough...
Does it mean that I need to give part of the army to someone (or, God forbid, dismiss units) so that the orange player attacks me on his own? :(
Added after 6 hours 2 minutes
I divided the army equally between the heroes and moved the second hero far away (so that he wouldn't confuse the enemy) - it's useless. The orange player behaves the same way: he reaches approximately the red wood observatory, then turns around and heads to his part of the map. What should I do?