Adjust reflected damage using Yanfly's ElementCore

Hi there,
I am using Yanfly's ElementCore and BuffStatesCore and want to implement a classic "reflect" state.
I would like to adjust the damage received upon reflection, however, the damage using ElementCore's tag <Element Reflect x: +y%> is reflected by 100% - giving the risk of self-onehits I like to avoid.
I thought to implement a reflection using lunatic mode of the BuffStatesCore by adapting the ThornMail Trick:
<Custom React Effect>
if (value > 0 && this.isMagical()) {
var rate = 0.15;
var recoil = value * rate;
user.gainHp(-1 * recoil);
if (user.isDead()) {
user.performCollapse();
}
}
</Custom React Effect>

This way, the caster will take a defined fraction of the initial damage. However, I somehow need it to omit the damage to the target.

Any help with it is much appreciated

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/adjust-reflected-damage-using-yanflys-elementcore.83069/