Unless your casters are holding a wand (a wand is a ranged weapon with an auto attack) or in melee combat with a melee weapon they don’t get an auto attack.
For hunters, auto shot and auto attack are the same thing and if you’re using Details as a damage meter it will say “Autoshot” and not “autoattack”. If you’re attack is working properly (and it is automatic) it will register in the combat log, and in details, and other things (like wild call) will proc.
Your macro is a good macro (old style “target=xyz” can be replaced by “@xyz” and save text). There are slight nuances between the version you have and what I posted, but ultimately what you have shouldn’t affect the autoattack/autoshot if other things are working correctly. Basically, I was reaching … ya know…
In the spirit of reaching… and fixing your auto attack issue, my thoughts are this:
Find yourself a target dummy. In Boralas, take a left at the Flight master and go down the stairs and then through the archway to target dummies.
Attack those target dummies
-
Pay attention to your Barbed Shot CD. If the auto attacks are happening but aren’t visible, which is possible (I can barely tell when my auto attacks are happening and I have a new PC with the graphics turned up to 11) you will see the Barbed Shot CD reset every so often. This only happens when then your auto attack is happening, and crits, and you get lucky (20% on crit proc chance)
-
Addons… yeah. they can mess with stuff when they glitch out. Type in /reload
or Disable addons and see if things change, but who knows…
-
Check your dps meter (an addon!). With the Details damage meter addon you can click on your damage in its little window and have it popup a larger breakdown window where it shows how much damage is from “autoshot” and “cobra shot” and “pet” and etc… Obviously if autoshot is there, your autoshot is working, even if you can’t see it working.
NOTE: If you’re hardcore, you can always go through the combat log chat window and look for autoshot.
-
if autoattack is truly not showing in your dps meter, add /startattack (**which shouldn’t be necessary at all) to your macro, like this.
#showtooltip Cobra Shot
/cast [target=mouseover][target=target,exists] Cobra Shot
/startattack
The nuances between the the original macro and the one I posted
This is all academic stuff and if you don’t care you can stop reading here.
Still reading? OK good.
[target=target,exists]
and []
are exactly the same thing, except the second version saves 18 characters and when you are limited to 250 characters that can become important. The []
basically means “cast this spell normally”, which means you must have a valid, existing and alive and enemy target for the Cobra Shot to be cast. It also eliminates the need to have “#showtooltip Cobrashot”. You can just use “#showtooltip”.
[target=mouseover]
and [@mouseover]
are the same thing except one saves 6 characters.
It’s important to understand that mouseover doesn’t differentiate between living and dead nor does it differentiate between friend or foe.
In this situation
/cast [first options][or if first options are false, use these second options] SpellToCast
if the “first options” evaluates to true, the spell will be targeted according to those options, EVEN if it evaluates to a target that is invalid for the spell. When that happens the spell fizzles and isn’t cast at all. It absolutely doesn’t “fail over” to the second options.
harm implies “existing enemy”
help implies “existing friendly”
neither help/harm or just ‘exists’ by itself implies “unit is alive” (you can target dead units). dead/alive can be tested for with these options “dead” or “nodead”
This version of your macro guarantees that you will attack a valid unit with cobra shot, either the one your mouse is over (if its a living enemy) or the one you have targetted (if you have targetted a living enemy unit), it just does it with much less text and again, 250 characters can be used up really fast…
#showtooltip
/cast [@mouseover,harm,nodead][] Cobra Shot
Stuff related to macros (but has nothing to do with your problem)
https://wow.gamepedia.com/Macro_commands
https://wow.gamepedia.com/MACRO_cast
https://wow.gamepedia.com/Macro_conditionals