5.6. Hit-and-run tactics are prohibited: the attacking hero is not allowed to retreat in the first round of battle if they used combat magic or any other magic that, in any way, inflicted damage on the opponent.
The phrase: which in any way inflicted any damage on the opponent fully applies to combat magic or any other magic.
Therefore, if there was no damage (hit), then it is possible to retreat (run).