Binding a spell @cursor
I would like to do "alt click" and it to drop D&D where the cursor is, no questions asked. I can do "SetBindings("ALT-BUTTON1", "SPELL Death and Decay") but it's missing the "@cursor". The way around it I can see is to do "SetBindings("ALT-BUTTON1", "MACRO DeathAndDecay")" where the macro does "/cast [@cursor] Death and Decay".
Is there a better way of doing this so that I can skip the macro?
IN ADDITION:
I have a number of key bindings to macros where my addon code sets up the key bindings in LUA, this ties a key press to a macro, and the macro calls back the addon via the /command system. A bit of round about way. Can I instead bind a key to execute some LUA code directly and to avoid having to set up macros which are stored and maintained externally to my addon ?
Last edited by doofus : 05-11-19 at 03:29 AM.
|