Okay. Bizarrely, the eval condition gives you no way to look at the potential targets. So open the plugin in a text editor, highlight lines 1347 - 1353, and delete them. Replace with this:
Code:
var group = this.getActionGroup();
if (condition.includes("target"))
{
let target;
for (let i = 0; i < group.length; i++)
{
if (!group[i])
continue;
target = group[i];
try
{
if (!eval(condition))
group.splice(i, 1);
}
catch (e)
{
Yanfly.Util.displayError(e, condition, 'A.I. EVAL ERROR');
return false;
}
}
if (group.length > 1)
{
this.setProperTarget(group);
return true;
}
else
return false;
}
try
{
if (!eval(condition))
return false;
}
catch (e)
{
Yanfly.Util.displayError(e, condition, 'A.I. EVAL ERROR');
return false;
}
Right-click the plugin in your plugin manager, reload, then save your project and test in a new play test.
That should make the code above work correctly. I have not tested this, let me know if you get any errors (press F8 and go to the Console tab to provide full error traces).
The reason I'm leery of
@BlackGoldSaw's suggestion using Selection is I'm not sure the AI core checks for the skill to have valid targets. My first suspicion would be that it meets your AI conditions, says you're using this skill, then it wastes a turn if the skill can't be used.