I haven't looked into the plugins yet (and excuse my absence, I had a power outage today), but I suspect the problem is not in my own plugin, just because I'm familiar enough with how these plugins work. But okay, I'll take a look at it nonetheless.
EDIT: Sorry if it looks like I'm throwing him under the bus, but this is on Yanfly, not me. He forgot the return value from DrawSkillCost in Limited Skill Uses.
This is what needs to be done to fix it. All of this must be done in LimitedSkillUses (I've already alerted Yanfly.)
1. Change this function:
Yanfly.LSU.Window_SkillList_drawSkillCost =
Window_SkillList.prototype.drawSkillCost;
Window_SkillList.prototype.drawSkillCost = function(skill, wx, wy, width) {
if (skill && this._actor.isSkillLimitedEmpty(skill)) {
return this.drawSkillLimitEmpty(skill, wx, wy, width);
}
Yanfly.LSU.Window_SkillList_drawSkillCost.call(this, skill, wx, wy, width);
};
to this:
Yanfly.LSU.Window_SkillList_drawSkillCost =
Window_SkillList.prototype.drawSkillCost;
Window_SkillList.prototype.drawSkillCost = function(skill, wx, wy, width) {
if (skill && this._actor.isSkillLimitedEmpty(skill)) {
return this.drawSkillLimitEmpty(skill, wx, wy, width);
}
return Yanfly.LSU.Window_SkillList_drawSkillCost.call(this, skill, wx, wy, width);
};
2. Change this function:
Window_SkillList.prototype.drawSkillLimitEmpty = function(skill, wx, wy, ww) {
if (Yanfly.Icon.LimitedEmpty > 0) {
var iw = wx + ww - Window_Base._iconWidth;
this.drawIcon(Yanfly.Icon.LimitedEmpty, iw, wy + 2);
ww -= Window_Base._iconWidth + 2;
}
this.contents.fontSize = Yanfly.Param.LSUFontSize;
this.changeTextColor(this.textColor(Yanfly.Param.LSUTextColor));
var text = Yanfly.Param.LSUEmpty;
this.drawText(text, wx, wy, ww, 'right');
this.resetTextColor();
this.resetFontSettings();
};
to this:
Window_SkillList.prototype.drawSkillLimitEmpty = function(skill, wx, wy, ww) {
if (Yanfly.Icon.LimitedEmpty > 0) {
var iw = wx + ww - Window_Base._iconWidth;
this.drawIcon(Yanfly.Icon.LimitedEmpty, iw, wy + 2);
ww -= Window_Base._iconWidth + 2;
}
this.contents.fontSize = Yanfly.Param.LSUFontSize;
this.changeTextColor(this.textColor(Yanfly.Param.LSUTextColor));
var text = Yanfly.Param.LSUEmpty;
var dw = this.drawText(text, wx, wy, ww, 'right');
this.resetTextColor();
this.resetFontSettings();
return dw;
};
3. Change this function:
Window_SkillList.prototype.drawLimitedSkillUses = function(skill, wx, wy, dw) {
if (!this._actor.isSkillLimitedUse(skill)) return dw;
if (Yanfly.Param.LSUFormat === '') return dw;
if (Yanfly.Icon.LimitedUse > 0) {
var iw = wx + dw - Window_Base._iconWidth;
this.drawIcon(Yanfly.Icon.LimitedUse, iw, wy + 2);
dw -= Window_Base._iconWidth + 2;
}
this.contents.fontSize = Yanfly.Param.LSUFontSize;
this.changeTextColor(this.textColor(Yanfly.Param.LSUTextColor));
var fmt = Yanfly.Param.LSUFormat;
var current = this._actor.skillLimitedUseCurrent(skill.id);
current = Yanfly.Util.toGroup(current);
var max = this._actor.skillLimitedUseMax(skill.id);
max = Yanfly.Util.toGroup(max);
var text = fmt.format(current, max);
this.contents.fontSize = Yanfly.Param.LSUFontSize;
this.drawText(text, wx, wy, dw, 'right');
var returnWidth = dw - this.textWidth(text) - Yanfly.Param.SCCCostPadding;
this.resetTextColor();
this.resetFontSettings();
return dw;
};
to this:
Code:Window_SkillList.prototype.drawLimitedSkillUses = function(skill, wx, wy, dw) {
if (!this._actor.isSkillLimitedUse(skill)) return dw;
if (Yanfly.Param.LSUFormat === '') return dw;
if (Yanfly.Icon.LimitedUse > 0) {
var iw = wx + dw - Window_Base._iconWidth;
this.drawIcon(Yanfly.Icon.LimitedUse, iw, wy + 2);
dw -= Window_Base._iconWidth + 2;
}
this.contents.fontSize = Yanfly.Param.LSUFontSize;
this.changeTextColor(this.textColor(Yanfly.Param.LSUTextColor));
var fmt = Yanfly.Param.LSUFormat;
var current = this._actor.skillLimitedUseCurrent(skill.id);
current = Yanfly.Util.toGroup(current);
var max = this._actor.skillLimitedUseMax(skill.id);
max = Yanfly.Util.toGroup(max);
var text = fmt.format(current, max);
this.contents.fontSize = Yanfly.Param.LSUFontSize;
this.drawText(text, wx, wy, dw, 'right');
dw -= this.textWidth(text) - Yanfly.Param.SCCCostPadding;
this.resetTextColor();
this.resetFontSettings();
return dw;
};