Castsequence with known modifier

I am trying to use a macro that uses an ability in a cast sequence if I know it, and otherwise skips it. My goal is the following; Use death pact if I know it, then health potion, then health stone. And obviously, if I do not know death pact, just potion>healthsstone.

#showtooltip
/castsequence reset=300 [Known:death pact]Death Pact, Algari Healing Potion, Healthstone

Not working, but not sure what to change to make it work. Suggestions?

Options are for the whole sequence, not a given spell within it.

#showtooltip
/castsequence [known:48743] reset=300 Death Pact, Algari Healing Potion, Healthstone; reset=300 Algari Healing Potion, Healthstone

Also, not sure why you’re using a 5 min reset when Death Pact has a 2 min CD, might want to drop it to 120.

it was 5 min reset for healing potion, I decided I wanted to add death pact into the mix as a sometimes spell. that works great though ty!

It’s worth noting that castsequence reset timers are based off the time since an ability was last used. So if you have a 300 second reset timer and use death pact and nothing else, it will take 5 minutes before it swaps back to death pact instead of a healing potion. If you used death pact and 4 minutes later hit the macro again, then it would be locked on healthstone for 5 minutes, effectively locking you out of death pact for 7 additional minutes after its cd ended.