Grey out skill type when no skill is learned

So basically I have a system in which magic is learned by combining shards using Galv's magic shard plugin

Is there any way to (as stated in the title :hswt:) grey out the entire command in the battle menu when there is no skill learned by a certain actor?
For example Harold already has the Magic command in the battle menu window since the beginning of game, but it is greyed out until he has the appropriate skill learned, let's say, fire.

While I understand that the default seal skill type already available, all it does is just skill the skill inside the command, not the command itself.

Anyone can help out to achieve this? Any tips would be appreciated
Copy this code into a text editor. Save it as a .js file in your plugins folder, add it in the plugin manager.
Code:
Window_ActorCommand.prototype.addSkillCommands = function() {
    var skillTypes = this._actor.addedSkillTypes();
    skillTypes.sort(function(a, b) {
        return a - b;
    });
    skillTypes.forEach(function(stypeId) {
        var name = $dataSystem.skillTypes[stypeId];
        this.addCommand(name, 'skill', this._actor.skills().filter(skill => skill.stypeId==stypeId).length>0, stypeId);
    }, this);
};
oh wow this is a really swift response and this works like a charm!!

Thank you soo much!!

This thread can be closed I guess

Original thread: https://forums.rpgmakerweb.com/threads/grey-out-skill-type-when-no-skill-is-learned.141976/