You can't run away only after using impact magic.
2.2. Hit-and-run is prohibited: Your hero, attacking an opponent's hero, is not allowed to retreat in the first round of the battle if he cast any magic. This prohibition does not apply to the hero who is defending.