Auto-translated
Firstly, it’s worth disabling the AI for the hero. Secondly, it’s better to create a separate function that will check if the turn of the desired player has arrived and initiate the hero’s movement, as the trigger for a new day is not quite suitable for this.