They should give the AI a stupidity level. Int 2 enemies would perceive everyone as the same threat, while int 12 enemies would spot the wizard and attack him.