If you try to add the state and the state is already added, it will be removed instead.
Do you have a state that can be removed when you apply the same state?
For example, you use a state that adds a poison state, but when you apply the same poison state, it will cancel out the existing poison state.
This plugin allows you to create toggleable states. When the state is added, one of two things can happen