Minimum Damage and Damage Rate

I'm currently using Mr. Trivel's Minimum Damage to make the minimum damage become 1 instead of 0, and it worked fine.

However, when I create a state that makes a character immune to an element (0% damage rate) it still deals 1 damage when ideally, it should deal 0 damage. This also makes 0% Magical/Physical damage rate deals 1 damage while I want it to deal 0 damage.

Is there any way to make "separate" minimum damage or any workaround for this? Thank you very much.

(I posted in here because I'm not sure whether this is caused by the plugin or by the default damage calculation. Also I'm using RPG Maker MV v.1.5.1 if it's relevant.)
Sounds like its working as intended, actually. I wrote my own battle plugin that (among other things) allows for minimum/maximum damage caps to be specified and it does the exact same thing when I cap the damage at 1.
@Aesica For making the minimum damage to 1, it is working fine indeed.

The problem is it also makes intended 0 damage (immunity) to 1 while I want it to stay 0. But I don't want to turn off the plugin because I want it to deal 1 damage in other damage calculation besides immunity.
You can always opt to do the minimum thing on your damage formulas instead of using the plugin, because that is evaluated before element resistances etc.

Basically, make your damage formulas look like this:

Code:
Math.max(actual damage formula, 1)

This way, your damage formulas will always be a minimum of 1, but all element effects, PDR/MDR etc can still make it 0.
@Engr. Adiktuzmiko Thank you, that worked quite well. 😂

Original thread: https://forums.rpgmakerweb.com/threads/minimum-damage-and-damage-rate.108839/