Hey, guys! So, I'm using Yanfly's Critical Control plugin, which works fine... and I'm also using another small plugin that makes minimum damage always be 1 instead of zero, which works fine too.
However, by having these 2 plugins enabled, critical attacks stop causing higher damage, they only cause normal damage, even though it's still displayed in red numbers.
If I disable at least one of the plugins, no matter which one, critical damage seems to go back to normal (causing higher damage). Trouble is, I need both plugins. So, can someone kindly help me find where the issue is, please?
Here's the code for minimum damage plugin, by the way:
However, by having these 2 plugins enabled, critical attacks stop causing higher damage, they only cause normal damage, even though it's still displayed in red numbers.
If I disable at least one of the plugins, no matter which one, critical damage seems to go back to normal (causing higher damage). Trouble is, I need both plugins. So, can someone kindly help me find where the issue is, please?
Here's the code for minimum damage plugin, by the way:
JavaScript:
Game_Action.prototype.makeDamageValue = function(target, critical) {
var item = this.item();
var baseValue = this.evalDamageFormula(target);
var value = baseValue * this.calcElementRate(target);
if (this.isPhysical()) {
value *= target.pdr;
}
if (this.isMagical()) {
value *= target.mdr;
}
if (baseValue < 0) {
value *= target.rec;
}
if (critical) {
value = this.applyCritical(value);
}
value = this.applyVariance(value, item.damage.variance);
value = this.applyGuard(value, target);
value = Math.round(value);
if (value <= 0 && baseValue >= 0) {
value = 1;
}
return value;
};