One thing I did notice with the Dark Transformation, is that if you cast a Death Coil right when a 5stack Shadow Infusion buff expires, so that your pet will lose his 5 stack and gain a new 1 stack buff, the server doesn't recognize this as a new stack and the popup graphic will stay (if you are using Blizzard default power auras substitute). Also on your hotbar it will still show up as if DT is castable even though your pet has only 1 stack (this causes it to interfere with 3rd party addons as well, which are typically programmed based on a "is castable" trigger). Attempting to cast DT in such a scenario will do nothing but waste a GCD depending on latency.
Though this situation occurs only rarely it can really throw off your concentration and waste a few GCDs on trying in vain to cast DT. The issue resolves itself when you get a new 5stack buff and cast a legit DT.
#showtooltip Dark Transformation
/cast [target=harm,nodead] Death Coil
/cast Dark Transformation
|
Your conditional statement is off on the second line. [target=harm,nodead] will try to cast it to a nearby target with a name that starts with Harm. You can leave that out and just use [harm,nodead] to do what you want it to do.
That being said, what are you trying to accomplish with this macro? At the moment it looks like it will interfere with DT casting at best, and waste RP on DCs with a 5 Shadow Infusion stack at worst. If anything I would place them in opposite order (that is, /cast DT before /cast DC) so you will never give up potential DT uptime (it will attempt to cast DT, and only if that fails it will do a DC). Seems like the more logical choice to me.