Stone castles were very, very effective against the Mongols. They sustained heavy casualties trying but were never able to take a single one in two invasions of Hungary.