Problems with the auto shot of my hunter

hello,i have a problem with my hunter in wow classic cataclysm when i reach level 85 i stop shooting autoshot only makes the animation of hitting melee even being in range , could you help me with this problem , it still persists after repairing.i need help please.

character name: Adraiken
realm: Faerlina

Do you have a gun or bow equiped?

Is it broken?

This is a known issue, and you need to use the script “/console AutoRangedCombat 1
/cast !auto shot
/run g = GetSpellInfo sr = IsSpellInRange as = g(75) rs = g(2973) if sr(as) and sr(rs) then SetCVar(“autoRangedCombat”, 0) end” and then reuse the macro when going out of the melee zone from larger bosses.

We are not sure if blizzard will be doing anything to fix this at this time.