Showtooltip part works fine - Showing Cleanse Spirit if no harmful target or if not mouse hovering a harmful target.
But the second part is weird. Both purging mouseover harmful or target harmful work, mouseover having priority. Both Cleangins mouseover friendly or target friendly work, as well, but the mouseover part only works on the physical player/NPC, i.e., I cannot get it to work on [Blizzard Standard UI] Raid Frames.
The odd thing about it, however, is that if I actually type /cast [@mouseover] Cleanse Spirit and hover my mouse over any frame, it works. It's just the macro that's bugging somehow.
Any idea?
Edit:
Well I feel shit now, after 10 minutes of trying to get it work with guildies, someone mentioned that mouseover macros on frames binded to a mouse button (which was the case), do not work. So, case closed!