Under royal decrees , many lepers were then tortured into confessing to these acts , and were subsequently burnt at the stake ( although this was often carried out by vigilante mobs before it could be done by the courts ) .