MV [Solved] Yanfly Buffs and States plugin's Custom React won't apply on the first hit

Hello! I'm trying to make a state which heals upon having the caster being hit, yet for some battles I'm using Force Action to hit the enemy with this state active and the state's Custom React does not apply on this first hit.

Code:
<Custom React Effect>
if (this.isPhysical() || this.isMagical()) {
target.gainHp(value);
}
</Custom React Effect>

Does anyone knows why the effect does not apply on the first hit or how can I solve this? I would be really thankful!
do you have other states with react effect notetags?
do you have other states with react effect notetags?
I have in the database created, yes.
On the same enemy no, I don't. This state with the mentioned Custom React is the only state the enemy has.

Also this behavior is consistent for other states with Custom React too.
well... i only have one state with that tag and it works nicely.

BUT i see something worth noting: you didnt check to see if what is being reacted to affects hp in any way AND you didnt alter the damage value meaning a hit would cause 100 dmg and heal 100 dmg and a heal would be doubled.

also, try putting the damagepop-clearresults combo to be sure nothing is happening without you seeing.
well... i only have one state with that tag and it works nicely.

BUT i see something worth noting: you didnt check to see if what is being reacted to affects hp in any way AND you didnt alter the damage value meaning a hit would cause 100 dmg and heal 100 dmg and a heal would be doubled.

also, try putting the damagepop-clearresults combo to be sure nothing is happening without you seeing.
Thank you a lot! It seems like the damage value was not altered and this caused the first hit to be default damage.
Thank you again!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-yanfly-buffs-and-states-plugins-custom-react-wont-apply-on-the-first-hit.133195/