"if he used battle magic or any other magic that, in one way or another, inflicted any damage to the opponent"
"...if he used magic (battle magic or any other), which can inflict any damage to the opponent" – and it would be even better to specifically list the exceptions in the explanations – the magic that, when used, allows retreating... IMHO.