You have a sword. Deflect the fireballs with the sword. Make sure that the fireballs hit the dragon's eye. Once you deflect the fireball, the sword will disappear. Eventually, it will come back.
I did some stuff.