Can a skill inflict different states to different battlers?

Basically, I would like to make a skill that inflicts the state berserk to all allies, and inflict speedy at the same time to just the user. Any help or ideas are appreciated, thank you.
Either

Add Berserk to all allies using Effects, setting the target to all allies

then use the damage formula to add speedy to user

Or add speedy to user using effects, setting target to user

then use damage formula to add berserk to all allies.

Ex.

a.add_state(ID_OF_SPEEDY_STATE)By all allies you mean including the user or not?if not, then the first method won't fit.
All allies does include the user, so the first one works, thanks for the help!

Original thread: https://forums.rpgmakerweb.com/threads/can-a-skill-inflict-different-states-to-different-battlers.42473/