MV Yanfly's Critical Control plugin is conflicting with another small plugin

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:

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;
};
I don't see any reason that would conflict with Critical Control.

It's only one function, and that function isn't overwritten (or even referenced) in Critical Control.

However, it does conflict with Yanfly's Damage Core, which is what integrates Critical Control.

If you have Damage Core in your project, I don't understand why you'd try to use that little plugin anyway. Just put the minimum value in your damage steps.
@ATT_Turan Damage Core has a parameter for max damage, but not for min damage... It does seem to be possible to set it up through damage steps though, but I'm a bit clueless...

Could you point me in the right direction, please? I just need to make it so that any attack that actually connects causes at least 1 damage instead of zero.
The final step in the damage flow is checking the minimum. Open the plugin in a text editor, go to line 1445, and change the 0 to a 1.
@ATT_Turan sorry, I only had time to test it now... but unfortunately it didn't work.

I even tried changing both lines (1445 and 1447) and still got zero damage from enemies.

Just in case, here are the lines:

JavaScript:
Game_Action.prototype.applyMinimumDamage = function(value, baseDamage, target) {
    if (baseDamage > 0) {
      value = Math.max(1, value);
    } else if (baseDamage < 0) {
      value = Math.min(1, value);
    }
    if (this.isDamageCapped()) {
      if ($gameSystem.getActSeqDamageCap() !== undefined) {
        var min = $gameSystem.getActSeqDamageCap() * -1;
        var max = $gameSystem.getActSeqDamageCap();
      } else if (this.item().damageCap) {
        var min = this.item().damageCap * -1;
        var max = this.item().damageCap;
      } else {
        var min = this.subject().maximumHealing();
        var max = this.subject().maximumDamage();
      }
      value = value.clamp(min, max);
    }
    return value;
};
You wouldn't want to change that second line, that would cause healing skills/items to damage you.

I dunno. You took that other little plugin out of your game, right? And after making any changes you Refreshed the plugin in your plugin manager, saved the project, and started a new playtest game?
@ATT_Turan yes, and I tested again just to be sure (by editing only the line you mentioned, then refreshing the plugin and starting a new game)... and I still got zero damage.

You see, there might be an easier way to fix this. I'm only using Damage Core because it's required for the Critical Control plugin, and I'm only using the latter because of one single skill (an attack that is always a critical hit).

The small plugin for minimum damage works fine without the Damage Core and Critical Core plugins, so if I can find a way to make that one skill always be a critical hit without the aid of Critical Core, then my issue is solved.

What do you think? 🤔
Change line 1444 to read
Code:
    if (this.isDamage()) {
Change line 1444 to read
Code:
    if (this.isDamage()) {
This is what solved my issue, thank you so much! You rock, man! 😍

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-critical-control-plugin-is-conflicting-with-another-small-plugin.171293/