for days , he had been hunting his prey after a surprise attack had left the dragon wounded , and sebastian knew that he would soon finish the beast who was now hiding within the confines of the central caves .