all the automatons had fallen with mortmain 's death , even the ones in the council rooms , and the majority of the shadowhunters had survived , though there had been heavy losses-including the consul .