Only allow the scope of a skill to be enemies with a specific state

I'm trying to make a skill that is only able to target enemies with a given state, I'm wondering if theres a way for the skill to, when in the selection menu, only be able to select enemies with the state, similar to how the scope, dead allies works, where you're only able to select allies with state 001., however this would apply to enemies. I'm using YEA battle engine.
It can only be done with a target manager type script, and I don't remember anymore which of the target managers had this feature and which not.

I think your best bet would be looking on himeworks.com, especially the tag manager in addition to tsukihimes versious targeting scripts.

Original thread: https://forums.rpgmakerweb.com/threads/only-allow-the-scope-of-a-skill-to-be-enemies-with-a-specific-state.168676/