why does he need to melee it at the beginning?
when he fired his spell, it went right through it and continued to be concentrated at 1 point like a lazer.
he could just continuously fire it at the same point and kill the dragon at a distance.
It seriously didn't need 2 deus ex machina, the dagger woulda sufficed.