Recently i tried to figuer one out, but failed...

the spec is deep destro 0_13_58

what i want this macro to do idealy:
Assume that immolate is on the target

once i press a button if Conflagrate id off cd - cast conflag
if Conflag on cd and Chaos bolt off cd - cast Chaos bolt
if both are on CD - cast incinerate

What i tried already:

Spam macro (the one i mash wildly)
/petattack
/use 14
/click MultiBarBottomLeftButton1
/click MultiBarBottomLeftButton2
/cast incinerate()

on the BottomLeft action bar button 1 i have Conflagrate
on the BottomLeft action bar button 2 i have Chaos bolt

But i never was able to go past 1st conflagrate and the macro never tried to cast Chaos bolt or incinerate
as i spam it i get only errors "not ready" untill the CD of conflag passes and i cast conflag again

What am i doing wrong and what can be done (if anything)