The skill can only select a target when that target has the specified status.

i want the user to only be able to cast skills and aim at a target when that target has a specified status.
if the target does not have a specified status then the user's skills cannot target that target.
I saw an article with a similar problem but is there a way to solve it on MZ?

Is there any plugin that solves this problem on MZ?

Original thread: https://forums.rpgmakerweb.com/threads/the-skill-can-only-select-a-target-when-that-target-has-the-specified-status.167124/