I agree with Forktong, I recognize how tricky it could be to code.

The latest patch (or the one before) changed Chemical Warfare into a "stance", so hit the button, and their next shot will be a chemical warfare thing, no targeting required.)