Reflection State

Trying to make a move where you apply a state to an enemy and when they attack they are hit by their own attack and it consumes the state. I have managed to get the Damage portion to reflect and zero out the damage that would hit otherwise but not the states that come with the move. I am wondering if there is an easier way than this. This is with Yanfly Buffs and States Core Plugin.
Code:
<Custom Confirm Effect>
if (this.isHpEffect() && value > 0) {
  user.gainHp(-value);
  user.startDamagePopup();
  value = 0;
  target.startAnimation(42);
  target.result().success = false;
}
</Custom Confirm Effect>
You might be able to use a conclude effect to check the target's result().addedStates, remove them, and apply them to the user. Otherwise, i think that in order to "perfectly" reflect the state as in, "completely avoid the application on the target and give it to the user" you'd need a plugin for it.

I vaguely remember Turan giving someone a tag to do the same idea, but im struggling to remember if it avoided the application on the target entirely.

Original thread: https://forums.rpgmakerweb.com/threads/reflection-state.179079/