No range damage against tower knight how do I beat him?

I’m fighting the tower night but I only got a long sword am I cooked?