Yanfly Skill Learn System - Already Learned Skills

Characters in my game learn skills through the yanfly skill learn system. But some classes share skills, and thus I created a version of each of these skills for each of those classes (had to create copies of the skills for a few reasons, but not relevant so won't go into that). I used the passive state plugin so that, upon learning a skill that has duplicates, a passive state makes the character learn each version of that skill for the classes that have it. That worked like a charm with no negative duplication or anything. However, when I switched over to that second class that shared the skill, I could still spend JP to learn that already acquired skill. Learning the skill doesn't duplicate it or anything, so it's not causing any massive issues mechanically. It's just annoying that the option is still available for players to waste points "re-learning" a skill they've already learned. Has anyone encountered this issue before? And if so, how did you resolve this issue of already learned skills still being purchasable in the skill learning menu?
You can use the <Hide if Learned Skill: x> note tag. Maybe that will do it for u?
Unfortunately that didn't solve it. Definitely a good idea though.
Unfortunately that didn't solve it. Definitely a good idea though.
Oooh you need to prevent them from learning the copies, ok.
<Learn Require Eval>
!user.isLearnedSkill(#) = true;
</Learn Require Eval>

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-skill-learn-system-already-learned-skills.124220/