[RMMV] Running a Common Event on state removal

Hello everyone.
In my game, I've made some "Joint" kind of skills where two specific characters attack together, this is handled by applying a state to one character, giving a skill to another character and then, if the 2nd character uses their newly acquired skill and the 1st character still has the state active, they do the technique and remove the new skill.
In the current situation, the new skill remains in the skill list of the 2nd character if the state is somehow removed from the 1st character and remains usable, which is not great as the player might end up using it incorrectly (and it's quite unpleasant UX to have a completely useless skill at all time).
I handle the logic of adding and removing the new skill in a common event, so it would be great to call it upon the removal of the State I use to handle Joint Attacks.
Is there a way to do so? I'm open to the use of plugins and, of course, to any alternative to simplify my logic.
Thank you for your time.
For the sake of others helping. Are you using any major plugins (like from YEP) that impact states and/or Battle things?
Yes, I'm sorry if I forgot to mention. I'm using the free suite that Yanfly offers, so there's Buff and States Core and Skill Core which might have some effects on it.

This is the complete list of plugins.

1744757605146.png

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-running-a-common-event-on-state-removal.176990/