Just started a new game. Got dual wand characters. They have aero wands which have chance to stun.

First couple of fights, it was a big mixup, and I ended up stunning my own characters as often as them.

Can someone tell me the rules for when stunning occurs and when should I use those kind of attacks?