I'm experiencing an issue whereby the hiddenability spec is not being applied through usage of the /pokegive command. However once I've given the pokemon I am able to apply the spec using the /pokeedit command.
The commands I am using are displayed in the example scenario below:
I give myself a Spearow with the hidden ability spec using this command: /pokegive useraindance spearow hiddenability
The server gives me a Spearow with the "Keen Eye" ability (when it should be "Sniper").
I then use the command: /pokeedit useraindance 2 hiddenability
This changes the Spearows ability from Keen Eye to the correct Sniper ability (which is its HA).