ChancreSore wrote:
Hi! I know this is probably easy as hell to find, but my Google skills seem to be lacking.
What I need is a macro to cast a harmful spell on my target's target if the target is friendly. If not friendly, just cast the harmful spell.
I tried:
#showtooltip Mind Sear
/cast [target=targettarget,exists] Mind Sear
But that only works on the target's target. If I'm targeting an enemy I get an "Invalid Target" error.
Thanks!
Jeff
If I'm understanding you correctly:
/cast [target=targettarget, harm, exists] Mind Sear; [harm, exists] Mind Sear
This will check if your target's target is an enemy and cast Mind Sear if that condition is true. Otherwise it will move on to the next condition and cast Mind Sear on your current target instead, if that target is an enemy.
Is that what you want?
It's that harm argument you're missing. It gave you invalid target because your target's target was friendly.