[Yanfly's Battle A.I. Core] - Eval Question

Hi, I've been using Yanfly's Battle A.I. Core for a while, and was trying to recreate the following:

An enemy will randomly attack (Basic Attack Skill) any one of my party members, as long as Actor 1 doesn't have State 11.
As soon as he gets the state, the enemy will cast another skill on every character that doesn't have State 11.

From what i understand, I should use

<AI Priority>
Eval (expression to check if my actor has State 11): Skill 1, Random
State !== State 11: Skill 3, Random
</AI Priority>

So now for the questions that brought me here:

1) In case I get the condition right, will it work as intended?
2) How do I check for said condition? I tried !$gameActors.Actor(1)._state(11) but it doesn't work...

Thanks in advance to anyone who can help me solve this!
<AI Priority>
Eval $gameParty.members()[0].isStateAffected(11): Skill 3
Always: Skill 1, Random
</AI Priority>
Thanks!!!

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-battle-a-i-core-eval-question.75619/