Since you're using yanfly's plugins, this is the simplest idea that comes to my mind.
Don't make these weapons unlock skill types. Make them inflict passive states and these states unlock skill types. You cannot have one state twice, so that will prevent anything like this.