Effect triggering when specific actors are in battle

Hello everyone, once again I need help ! Sorry to be a nag XP

I want a piece of armor to have an effect that is only triggered when two specific actors (the one equipped with the armor piece and another specific actor) are in battle. For example, the effect would be : "if the actor wearing this armor and John Doe are in battle, then the actor gets a buff of his ATK stat."

I looked through a few plugins (maybe not enough or not well enough), but I have no clue on how to achieve that... Is there a plugin that makes such effects possible ? Do I have to use js ? Thank you in advance for your help ! (^^)/
I looked through a few plugins (maybe not enough or not well enough), but I have no clue on how to achieve that... Is there a plugin that makes such effects possible ? Do I have to use js ?
its doable with yanfly's passive states plugin, but you'd need a little JS to do it. you'd give that armor a passive state and give the state a passive condition being
Code:
<Custom Passive condition>
condition = $gameParty.battleMembers().includes($gameActors.actor(2));
</Custom Passive condition>
and itll be active on the person wearing the armor only if actor 2 is in the party and in a battle position
Thank you so much, this is exactly what I was looking for !! And thanks for saving me again haha !

Original thread: https://forums.rpgmakerweb.com/threads/effect-triggering-when-specific-actors-are-in-battle.168400/