Hello, I have a skill that stuns both the spellcaster and the target. The idea behind this skill is that the user is imobilizing the target with her body, so the spellcaster is unable to make any actions while the enemy is stunned. How am I doing this? I use Yanfly's Follow Up Skill script. First, the user casts a skill that stuns the target, then it triggers another skill that stuns the user herself.
But there is a problem. Suppose the enemy has resistance against stun (let's say, 50%). In this situation, there is a chance that the user sucessfully hits the target but is unable to stun it because of its resistance against stun. In this circunstance, the user would stun itself without stunning the target, which does not make sense if you take the concept in account.
What do I want after all? I want the user not to stun itself unless the target is also stunned. Does anyone know how to do this?
But there is a problem. Suppose the enemy has resistance against stun (let's say, 50%). In this situation, there is a chance that the user sucessfully hits the target but is unable to stun it because of its resistance against stun. In this circunstance, the user would stun itself without stunning the target, which does not make sense if you take the concept in account.
What do I want after all? I want the user not to stun itself unless the target is also stunned. Does anyone know how to do this?

