Kinda weird that he's figuring this shit on the fly, wasn't he training with Hakurou AND Milim back at Tempest?
Granted, "training with Milim" is probably more along the lines of "try not to avoid being blown up for as long as possible", but putting magic on his sword seems like something Hakurou could've taught him already.