Check if a party member is in battle?

I have a passive ability that's supposed to be active when the user is in battle. How do I check to see if that condition is true?

(For context, I tried using the $gameParty.inBattle()line, but that makes it so that the character doesn't have to be in the battle, just in the party. I want to make it so the condition is true if the user is in the party AND in battle.)
Assuming user is your actor reference:

user.isBattleMember()
(For context, I tried using the $gameParty.inBattle()line, but that makes it so that the character doesn't have to be in the battle, just in the party. I want to make it so the condition is true if the user is in the party AND in battle.)
Just out of sheer curiosity...what is this state doing? One would expect it wouldn't matter for you to check explicitly if they're in the party - most things you'd do to an actor during battle would simply have no discernable effect if they're not on-screen in the party.
Just out of sheer curiosity...what is this state doing? One would expect it wouldn't matter for you to check explicitly if they're in the party - most things you'd do to an actor during battle would simply have no discernable effect if they're not on-screen in the party.
If the specified character is in the battle, everyone gets a special state at the start of the battle where their MP cost is reduced to 0 for a few turns. It's a pretty powerful state, which is why I want the passive to apply ONLY if the character is on-screen.
Yup, affecting other actors would definitely be a reason 😛

Original thread: https://forums.rpgmakerweb.com/threads/check-if-a-party-member-is-in-battle.167211/