>>214072672
I'm not sure how conscious it is on the part of the writers, but generally all other characters who get portrayed in a negative light for that kind of episode get their personality fundamentally altered in some way, it's not only the circumstances that make them reveal themselves as flawed like Riker does.