I figured it out. I modified line 111 of luna.lua from
CastSpellByName(action)
to
CastSpellByName(action,1)
And now it works flawlessly. I might submit a pull request because the current functionality is not as useful as this.
Yes this is what I am doing now. A macro that worked the way I described would free up 9 key binds for me however since I normally use alt modifier to bind additional spells, macros and items ect.
I have been trying to figure this out for hours now. I want a macro that will behave like a normal luna mouseover macro (like this)
/lunamo Greater Heal(Rank 1)
as long as my mouse is hovering over a unit frame but I want it to cast on self if the mouse is not hovering over a unit frame.
10 gold tip to any one who can help me figure this out.