I already have a way of storing what I want to attack in a variable, and can verify that's successful. All I need to know is how to properly cast at something with the name I've stored in said variable. Example

Var1 = "Jimmy" /cast [@Var1] Heal

The above obviously doesn't work, but I hope it shows what I'm trying to do.

No, I can't just target the thing I'm casting on. No, I can't just use focus, as I need focus for something else. The point is to maintain my current target and focus, and still cast on something else without something like a mouseover macro.

  • There is a similar question here: gaming.stackexchange.com/questions/14677/… but it seems to not have a suitable answer. Perhaps the partial answers will help you?
    – robalan
    Jul 23, 2012 at 16:12
  • I've read all the way through that thread. It doesn't help. =/
    – Gl33m
    Jul 23, 2012 at 18:25
  • I tried to do this without luck before. My guess - it's a limitation of their system.
    – JoeB
    Jul 23, 2012 at 18:32

1 Answer 1


Casting is a protected function (as is also targeting, and a number of other critical functions) and can't be accessed by tainted code (i.e. lua scripts/addons).

This limitation was introduced way back (patch 2.0) when mods like Decursive trivialized game content by basically making you press one button repeatedly and playing the game for you.

For more info read up on "Secure Execution and Tainting"

The most you can do with casting is only via direct (untainted) use of /cast and /castsequence commands. More info on that you can find in the 'Macro options' section of the following article: http://www.wowwiki.com/Making_a_macro

  • Thanks. I was beginning to suspect this. Sigh Back to focus macros.
    – Gl33m
    Jul 23, 2012 at 23:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .