There's a file which let's you specify by four-letter code what ability any given unit has on autocast. I don't have the information on hand (I'm in a
university lab and for some reason they don't have WC3 installed on the computers), but if you know how to do .mpq editing, look through something like
UnitData.slk for this information.