I'm using VISUAL Stella skillstate core and I want accomplish this.
I want to make certain skill can't be used unless enemy have like poison state. I'm no JS expert. Would anyone mind helping me to accomplish this.
How about enemies? I want the skills for actor unable to target the enemy unless enemy have state like poison
Somehow it still targets even enemy without the state
Are you testing in a new game? Using the editor's Battle Test or loading a save game may not work correctly.
Otherwise, post screenshots of your skill in the database.
For future reference, that's pretty hard to read. I appreciate you wanted to show what the entire line of code says, but chopping up these tiny segments instead of just posting an actual screenshot makes it impossible to see if there's some other setting in the skill that might be affecting it.
And you have the Battle Core plugin installed? I don't know what else to say...someone else more familiar with the plugin might have a better idea.