no, the code is not correct - percentages don't work that way.
and where would you even use it? States don't have a damage formula...
Theoretically there are several ways to handle this, but I don't know what plugins exist for MZ.
The non-plugin option would be to make two states with the different effects and have the skill try to apply both states. Then make your actor 1 immune to the first state and all others immune to the second state.
With Skills and States Core, you might be able to create conditions for each actor... IF characterX is afflicted by conditionY, inflict characterX with conditionZ.
That's concept code by the way... so don't copy paste it. Point is, the basic conditions would be conditionY, and the unique conditions add-ons or over-rides per character would be condition Z.