Also as a side note, there's no guarantee the macro will execute each line in succession. That's why we usually tell people to stick to one action line per macro.
For example, your macro can (and will) heal you even if you have a healable target or are hovering your mouse over a target.