Auto-translated
As a third option, it would be better to give Heroes players the ability to choose whether to allow or prohibit the Attacking hero from casting spells with their units when retreating in the first round.
Something like this:
"The Attacking hero is not allowed to retreat in the first round of battle if they have cast any spells, while the hero's units can cast spells without restrictions. The Hit&Run restriction does not apply to the defending hero."