It seems to me there are other problems in your setup you'd need to account for.
By default, the X Random Targets skills can hit the same target multiple times. And, of course, if you have few enough enemies in the troop, it's guaranteed to do so.
So if you use your skill against 1 enemy, it's guaranteed to hit them 4 times. Do you want your damage formula to make it so that the 4 hits add up to the total damage it would do to separate enemies? What about if it has more enemies but just happens to randomly hit the same enemy more than once?
There's a lot of room for vagaries here. I'm inclined to say your solution is in VisuStella action sequences, where you can control the skill on a more granular level, but I think you should first codify exactly how you want the skill to behave under all circumstances.
And if the attacker is effected by a state they cannot use that ability.
That's really simple, Seal Skill is one of the traits available for states.