It will use the first true condition, so you generally want mod:X before other cases, or you will need to add explicit nomod instructions there.

Also, target=target is kinda...pointless. If you have the slave target you first, then target=targettarget would be "my target"...otherwise there are equivalents like party1target etc which you could look at, but somehow it needs to know WHOSE target in order to check it. Using target=target just means "your target is your target" i.e. it is really bloody pointless (if valid) code.

Lifebloom is a "help" spell, i.e. you can't cast it on hostile mobs. The noharm conditional is pointless in this macro. Likewise you can't cast it on dead people, or nonexistant people, so it would automatically evaluate a given statement to false if those came up.