Yanfly's Class Core - One Actor Per Class?

In short: I want to restrict my classes in such a way that only one Actor may belong to a certain class. In this sense, classes would behave a little bit like equipment in that they can only belong to one person at a time.

E.g. If actor 1 is, say, a warrior, then actors 2, 3, and so on cannot be warriors. However, if actor 1 then swaps to being a mage, then another actor could be a warrior or any other class that isn't already "occupied".

I had thought to create a common event that would check if any actor was X class, and then disable X class for all other actors. Problem is, I don't know how I'd force this event to run every time a character changed class within the class change scene.

Anyone have any suggestions?

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-class-core-one-actor-per-class.78531/