Hi, I am trying to make this macro work but I cannot see what the problem is.
#showtooltip
/startattack [nostealth]
/targetenemy [stealth]
/cast [@mouseover,nostealth,nodead][] Poisoned Knife
/cast [@mouseover,stealth,nodead][] Sap
Unlike other similar macros I’ve made, this one always casts poisoned knife. I want it to cast sap or poisoned knife @mouseover (if mouseover exists) depending on if stealth is active. I also tried swapping sap with cheap shot to test and have had no luck.
Thanks.
Remove the empty sets of [ ]. They mean always cast this spell.
Or if you want to cast on your target if you don’t have a mouseover then replace them with [stealth] or [nostealth].
#showtooltip
/targetenemy [stealth]
/cast [stealth,@mouseover,harm,nodead] [stealth] Sap; [@mouseover,harm,nodead] [] Poisoned Knife
/startattack [nostealth]
@Elvenbane tysm! I was trying to figure out what the problem was for the longest time!
You had two problems: the []
catch all that Sharinthia mentioned and you were missing an existence check on the mouseover condition sets.