Battle States

During battle I would like to add a custom state function for when a specific state is applied. And I only want it to run once.

Do I hook into:  Game_BattlerBase.prototype.addNewState

And also every time the update is called I want to check if the actor has the state applied or not.

Do I hook into: Spriteset_Battle.prototype.updateActors

If anyone has any good leads let me know.

Thanks,

Original thread: https://forums.rpgmakerweb.com/threads/battle-states.53522/