Show/Hide States

I am having a little difficulty in finding the code for this.  I have states that I want to show outside battle and not inside battle.  Does anyone know off hand where this is located?  I was just going to add something simple where if the priority == 1 then it won't show the icon in battle.  I checked the object and window JS files, but I think I am missing it.

Original thread: https://forums.rpgmakerweb.com/threads/show-hide-states.55919/