After five weeks, when the English Protestants were ravaged by disease, they surrendered on terms, before Barry had to collapse his mines and assault the castle.
After five weeks, when the English Protestants were weakened by illness, they surrendered under terms before Barry had to close his mines and attack the castle.