Hey guys, so I'm trying to make a macro that will do this: when I mouseover someone it will cast Desperate Prayer on them, or if I have someone targeted (by just left clicking them) it will cast Desperate Prayer on them, or if I'm not mouseover'ing or I don't have anything targeted, then it will cast Stoneform followed by Desperate Prayer on myself. This is what I have right now but I honestly don't know much about macros. Any help would really be appreciated :)
Although the below macro should work as you intended, aka cast on mouseover, or if not mouseovering then at your current target (which can be yourself if you have no other target). Only replace the "spell" bit.
/use [@mouseover, exists] spell; spell
Also hit up google with some wow macro searches, should bring up some quick and easy guides :)