Compatibity with Yami's Skill Equip + Passive Skills

I'm having problem with Yami's Skill Equip + any passive skills scripts. (Yami's website is off, so I'm uploading the Skill Equip Script)

The effect works and all, but the problem is that even if the skill isn't equiped, it still affects the character.

I'm completely useless when it comes to scripting, can anyone make this work?

Yami's Skill Equip.txt

http://forums.rpgmakerweb.com/index.php?/topic/4693-passive-skills/ (This is NB's Passive Skills, also uploading it on a .txt file)
CP's Passive Skills.txt

Yami's Skill Equip.txt

CP's Passive Skills.txt
Easy enough to do. Put the following after both scripts.

Code:
class Game_Actor < Game_Battler  def passives    return [] unless equip_skills    res = []    @passover = true    equip_skills.each do |skill_id|      skill = $data_skills[skill_id]      next unless skill      next if skill.passives.empty?      res += skill.passives    end    @passover = false    return res.collect {|ps| $data_states[ps]}  endendclass Scene_Skill < Scene_ItemBase  alias :sel_nb_passive_oseok :on_skill_equip_ok  def on_skill_equip_ok    sel_nb_passive_oseok    @actor.refresh    @status_window.refresh  endend
Sir, you've just made a guy really happy.

Thanks for this script, works really well, at least so far. 🙂

Again, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/compatibity-with-yamis-skill-equip-passive-skills.24373/