Not at home to test that - however, if you follow my train of thought, it should be looking at the target, should look at the buffs (or instead of buffs, theres a variable for DEbuffs?), then cast that spell based on the if/then statement when it sees the buff/debuff of Smoldering Bones
Would...