Skill that affects both the user the target differently

So In my game I have only one shield user and in this case, he is the only one who is able to use the guard skill. I made it so that it would always go first and block all incoming damage, so to prevent it from being overpowered I also apply a slowness state so that the next turn, the character will go last and be unable to guard any attacks (as they would use their skill at the end of the turn after all enemies attacked)

Now I want to make that character be able to guard other people, which works just fine. The character who used the skill goes first and the guarded character takes no damage that turn. The problem is that the slowness effect is still added to the target character and I want it to be added to the user.

Keep in mind that I still want to be able to use the guard on the original character so that again, he would go first, guard and then take the slow state.
Capture.PNG
leave the Add Guard as an added effect, but add the Slow state to the caster through the damage formula.

type: HP damage
formula: a.addState(id); return 0;

where id is the state number for Slow
Thank you, that did the trick. I've never really delved too deeply into damage formulas, maybe it's worth looking into.

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-affects-both-the-user-the-target-differently.96178/