Add short comment
Optimize reset attack lock flag
Clean up handling of player flags