MV Getting AI condition to check the current state the user has? (YEP Actor Auto-Battle AI)

Basically, I am wondering how do I make it so that an autobattle actor does action A if it is inflicted with status B when using Actor Auto-Battle AI from Yanfly.
I thought it was
Code:
Eval user.isStateAffected() === x: Skill y, Highest HP%
, where x was the state ID and y was skill ID, but the AI just ignores that and does Attack instead.
close, it is actually
JavaScript:
user.isStateAffected(x)
Ah, that fixed my dumb mistake. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/getting-ai-condition-to-check-the-current-state-the-user-has-yep-actor-auto-battle-ai.169208/