<JS On Erase State> code code </JS On Erase State>
Used for: State Notetags
When a state is erased, run the code added by this notetag.
The 'user' variable refers to the current active battler.
The 'target' variable refers to the battler affected by this state.
The 'origin' variable refers to the one who applied this state.
The 'state' variable refers to the current state being affected.