Debuff Target Problem

Hey, I am pretty new with the whole rpg making concept and now I have a (probably noob) problem which I can´t solve with google alone^^


I created an enemy which has a few skills.


One skill changes the state of a target for 3 turns.


That works so far, but I want that the enemy only uses this skill on targets without that state (or not at all, if there are no targets without that state).


Usually I would try some "if-else" stuff, but i don´t know where.
Well, I don`t know how it works for MV (I don`t have one). Have you carefully looked through skills` database? You usually cover a lot with just this.
If there`s nothing that affects in which cases a skill should or shouldn`t be used, you might need a script edit to help it. There are not many to choose from since MV is relatively new but give it a try.
I`m not much of a help here, sorry  😅:
http://yanfly.moe/2015/10/19/yep-16-battle-a-i-core/


http://yanfly.moe/2016/02/26/yep-74-target-core/


Read up on both of those plugins.

Original thread: https://forums.rpgmakerweb.com/threads/debuff-target-problem.64271/