Macro help: setting raid target icons

I tried this already and it doesn’t work, it tries to cast shield and does not move on to the heal.

it is for my priest too