Problem with HRG, MRG and TRG

are these regens from a passive state? a passive state could have a condition to only work in battle.
<Custom Passive Condition>
if ($gameParty.inBattle()) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>

this is a cut/paste of just part of a state condition someone else helped me setup. it should work but i still dont fully understand this stuff
Yeah. I just noticed the Buff and States core completely bypasses the defalut regenerate functions that I rewrote. If it is the Buff/States core, it should be a very easy fix but one that has to be done on a per state basis.
It's not a passive state.
It's given via equipment (for instance a ring with HRG = 1%).
Still think the simplest thing is just to inflict the state which grants regen as an automatic thing on turn zero of each battle (within a conditional to check if Charmed is present) with the setting that it expires at the end of battle. Is there a specific reason why this wouldn't work for you?
It doesn't work because I've got many different pieces of equipment that modify HRG and the rest.
just to make sure, remove YEP, and go directly to the regeneration section.
if you comment out onTurnEnd(), it should make a difference.

from there, we can be sure YEP is the thing to be fixed.
I removed this.onTurnEnd(); from the function in a brand new project and the regen didn't occur.
ok, so now go through all the plugins you have, and make sure only YEP triggers that.
that's isolating the problem.
Okay I'll try to identify it.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-hrg-mrg-and-trg.119170/