Prevent Weapon Skills From Displaying

I think it might be late, cause my brain is in a fog right now from working on this project all day.

I am trying to just NOT list a skill in the skill combat menu if it is disabled.  This would mean if a character was not wielding a weapon type it would not be displayed.  Maybe I am missing something, but when I assign a skill to require a weapon type it is displaying in the skill window during combat even when the weapon is not wielded.  This is sort of pain when trying to add a bunch of skills that require certain weapon types.  

  def make_item_list 

      @data = @actor ? @actor.skills.select {|skill| include?(skill) } : []

  end

 

I have a feeling I need to put an if check here, but I can't seem to figure out the right syntax or whatever.

 

Right now if I have a long sword wielded I want just the long sword skills to display, not also all the ones that are with an axe or a spear. It ends up listing a whole mess of random skills that are translucent.  

 

Thanks.
What about linking them the other way - instead of specifying that the weapon is required on the skill tab, get rid of that, and on the weapon tab, add the skill to the feature list. So the skill will be given when the weapon is equipped, and removed when the weapon is unequipped.
Omg.....I have NEVER noticed you could add skills to the feature button.  You know how maannnnnnnnny hours I have been trying to do this?  lol
there is a reason why I say in my starting point that you have to explore the editor - no one can guess all the thousands of options and tricks that are available in it...

Original thread: https://forums.rpgmakerweb.com/threads/prevent-weapon-skills-from-displaying.45533/