Patch Request: VE Passive States with Yami Skill Equip compatibility

Good Morning / Day / Afternoon / Evening everyone.

I'm using Victor's Passive States

And Yami's skill equip as you may already know

I have a request for a patch that does the following, you see, when the actor has the skill that is supposed to be a passive skill, I assumed that with Yami's Skill Equip the passive state wouldn't activate without the skill being actually equipped. But it turns out this wasn't the case, as the moment the actor has the skill on their skill list it is always active, even if I unequip it with Yami's Skill Equip.

With this said, how difficult is it to create a compatibility patch that remedies this situation, the Passive Skill should supposedly be on the skill list, but only actually active when you actually equip it.

Any help is appreciated and don't hesitate to reprimand me if I sound a bit too demanding, it is never my intention to bother anyone and I will completely understand your refusal.
Ruby:
class Game_BattlerBase
  attr_reader :equip_skills
  def add_passive_states
    setup_passive_states(get_all_notes)
    skills.compact.each do |skill| 
      next if !actor?
      next if @equip_skills.nil?
      next if !@equip_skills.include?(skill.id)
      setup_passive_states(skill.note)
    end
  end
end
class Scene_Skill < Scene_ItemBase
  alias r2_on_skill_equip_refresh_party   on_skill_equip_ok
  def on_skill_equip_ok
    r2_on_skill_equip_refresh_party
    $game_party.refresh_passive_states
    @status_window.refresh
  end
end
I add this below both scripts yes? I will test it.
02.06.2021_19.04.38_REC.png

02.06.2021_19.05.28_REC.png


Unfortunately it doesn't seem to be working, I placed the patch below both scripts and no matter what, even with all the skills remove

"Guard Recover" and "Strength + 5" are still active on the actor... you can see on the icons next to the faceset

Did I do something wrong?
It works, but you're expecting it to update right away. If you exited the skill scene then the status will show correctly.
I updated the code above to do a refresh.
Yeah, you may be right. Thank you so much for this, If I encounter any errors i'll let you know, I really appreciate the help, though honestly I ought to learn more about RGSS3 before asking for it, it feels like i'm bothering unnecessarily sometimes .

Anyway, Thank you for this!

Original thread: https://forums.rpgmakerweb.com/threads/patch-request-ve-passive-states-with-yami-skill-equip-compatibility.137087/