After Bolko II had died without issue in 1368, his widow Agnes von Habsburg sold the castle to one of the courtiers, the knight Gotsche Schoff. Gotsche II Schoff modernized and expanded the castle in 1393. In the same year he donated the Gothic chapel, which was completed in 1403. The chapel devoted to Saint Catherine and Saint George featured artful paintings preserved until World War II. The castle survived the next centuries without damages. It withstood the attacks by the Hussites in 1426 and by King Matthias Corvinus of Hungary, who after his campaign of 1469 destroyed many Silesian castles. In 1529 Ulrich I von Schaffgotsch expanded the building with two forecourts, depots and a pillory, and at the end of the 16th century Renaissance modifications were carried out.