Macro for Target of Mouseovertarget

thanks Elvenbane that worked

Do you have also a Tip for a macro with if then. Like cast desperate prayer if on cooldown cast healthstone.

Cheers