MZ [Visustella] Hide skill costs for skill in certain skill types

Hi everyone,

I'm hoping that someone can tell me what should I write in Visustella's Skill and States Core plugin, MP costs to be precise, so MP costs are not drawn on skills that use MP cost while a skill is of a certain skill type (in my case it's skill type number 3). This mainly regards Fomar's Passive Skills plugin and this method is the most comfortable for me: not to display MP costs for skills in skill type number 3, just custom cost test I put.
VisuMZ Skills & States Core has a Skill Cost Types -> (MP) -> JS: Show Cost? plugin parameter. I think you could just add a line to that to check the skill type, e.g. (untested):
JavaScript:
// Declare variables.
const user = this;
const skill = arguments[0];
const cost = arguments[1];

// Added! Never show cost for skill type 3.
if (skill.stypeId === 3) return false;

// Otherwise only show if cost is positive.
return cost > 0;
You could condense that to

return skill.stypeId !== 3 && cost > 0
Thank you both for your answers. I went with Trihan's suggestion which worked like a charm. The issue is resolved.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/visustella-hide-skill-costs-for-skill-in-certain-skill-types.143442/