MV Checking Actors in the party...., along with removing 1 from the check

So this is gonna need Javascript(Or one very long common event and used instead)

I have a game where at the start you select one of three characters(Warrior, Mage, Thief as an example). During the game, you can pick up the other two you didn't find along with another character(Say Monk).

After a boss fight, your Main character gets effected by a buff(Which is another topic, let's just say it's an equipment, state, class change, whatever) and thus can't be affected the next time this happens.

So boss 2 dies, game goes "Who would you like to use this on" and turns to the party line up. And you might see the problem. I need to exclude 1 character from the scan, and then have the event/program realize "OH they are missing 2 of the 3 possible characters, I guess I should only let them effect the third".

Without having a very large "If X is in party, If Y is in party, if Z is in party" listing going, what's an easy way to do this?

Original thread: https://forums.rpgmakerweb.com/threads/checking-actors-in-the-party-along-with-removing-1-from-the-check.126600/