Yanfly Damage Core: Negative Damage; Minimum Damage

Hey everyone, here's the gist of my errors:
 

  • Using low numbers.
  • Sometimes numbers are so low that I deal negative damage.
  • If I do something to set the minimum damage to one, healing will also hurt for 1 HP.
  • I want to do a minimum damage of 1 on attack, not healing.
Any solutions?
I recommend that you list out any changes you've made to the damage core's damage steps (or even all of the steps). The Damage Core's default settings mimic that of the very same structure as MV's damage steps.
I have the default steps in fact. I think the issue lies with 

Line 10: if (baseDamage > 0) {Line 11: value = this.applyDamageRate(value, baseDamage, target);Line 20: if (baseDamage < 0) {Line 21: value = this.applyHealRate(value, baseDamage, target);I have the ends of the brackets on the same lines. I believe that if the base damage is less then 0, it's going to then apply a heal rate. 
The BaseDamage calculations are done purely based off of the following:

Game_Action.prototype.evalDamageFormula = function(target) { try { var item = this.item(); var a = this.subject(); var b = target; var user = this.subject(); var subject = this.subject(); var s = $gameSwitches._data; var v = $gameVariables._data; var sign = ([3, 4].contains(item.damage.type) ? -1 : 1); var value = 0; if (item.damage.custom) { Math.max(eval(item.damage.formula), 0) * sign; } else { value = Math.max(eval(item.damage.formula), 0) * sign; } return value; } catch (e) { return 0; }};Which means, the calculated damage does not go under 0. The -1 sign is only applied afterwards if the skill is detected to be HP Healing or MP Healing.

I just inserted this into my Attack skill:

a.atk * 4 - b.def * 2000000000000If what you said is true, it'd heal the defender.

Here's the result:

vx0fkp5.jpg


More than likely, you either have another plugin that's working the damage formulas incorrectly or you've made modifications down the line elsewhere within the damage steps.
I removed it first and found I'd do zero damage. I then reinstalled the plugin and once again, I'm dealing negative damage. 
When you reinstall, are you removing the plugin completely or just turning it off?

Remove it completely, press OK from the Plugin Manager. Save your game. Then reinstall it, and save your game again. If you're getting 0 damage, that means you've tinkered the settings. If you're still getting an error, upload the game online (do not deploy it), send me the link via PM, and I'll take a look.
Going to have to PM it. I did everything but no work. I'm so useless. 🙁

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-damage-core-negative-damage-minimum-damage.50192/