MZ VisuMZ Skill Mastery

How can i prevent enemys from master skills?

I tryed to change the exp formula like this:

exp = user.isActor() ? (10) : 0

The enemys still get mastery exp
I don't have the plugin but I quickly checked the plugin page and I think that formula is for determining what is the exp needed for the next level, not how much you gain. I didn't spot where you could set the amount gained or if you could stop enemies from using that mechanic (which is a bit bizarre to me if that's indeed the case).

What you can try is go to console by pressing F8 and go to the console tab and start writing:
Game_Enemy.prototype.skillMastery or something similar and check if it shows a method named like Game_Enemy.prototype.gainSkillMasteryExp or similar.

Then you can add your own plugin (notepad, save as .js file and add in plugin manager) below VisuStella, where you'd add an empty method (use the correct name):

Game_Enemy.prototype.gainSkillMasteryExp = function() {

};

EDIT: Of course you can also try setting the exp needed for enemy next level to some very high number

Original thread: https://forums.rpgmakerweb.com/threads/visumz-skill-mastery.182703/