Role: Lawyer
Alignment: Town/core
Ability: Either defend or prosecute someone on trial. Your ability can only be used when someone is on trial, using -defend will change all guilty votes into positive, abstain remains abstain.
Using -prosecute will turn all innocent votes into guilty votes, abstain remains abstain
The message "a lawyer has convinced you to lynch/free [trialed player name]" will be displayed to everyone
There can be a setting to allow 2 or 3 defences or prosecutions.
There can also be a setting to allow the same player to defended more than once.
Investigator message: If it possible, rename the framer message to "your target is very skilled at providing false evidence, they are most likely a lawyer, but might be a framer"
If it is not possible, just keep the message and say that the lawyer is good at forgery.
Notes: I think is a great way to sometimes survive those messes where the confirmed mafia outnumber the town, while still not being powerful enough to end the mafia late game entirely
becuase, unlike the mayor, his ability can't get people on the stand, but only takes effect after they do.
And yes, I know how terrible this role can be in the hands of a griefer/skyper/idiot, but it is no more dangerous than a jailor in those hands.