[Request] Demonic Grace + Haunt (SoD)

Hi!
As the record macro function doesnt work (it wont generate out of the recorded sequence a macro)
i try it here.
What i want is a macro which first casts demonic grace and then haunt and when demonic grace is on cooldown only haunt. it’s a castsequence macro so should be pretty easy the problem is when i create a cast sequence macro it doesnt cast haunt when demonic grace is on cooldown.

any help or advise would be appreciated