Code:
<Custom Requirement>
if ($gameParty.battleMembers().filter( function (actor) { return actor.isStateAffected(67); } ).length > 0){
value = false;
}
else{
value = true;
}
</Custom Requirement>However, i haven't figured out a way to do so when the state affects an enemy. So i want to know how to apply the above condition to $gameTroop and check the number of enemies affected.