If you have no focused unit or if your focused unit is dead, this macro will in one click: set focus on your current target, put the orange raid target icon on it, and shackle it.
If you already have a focused unit that is alive (probably because you have already used the macro once), it will cast shackle on it without changing your target.
If you don’t know what this means, as it’s extremely helpful, try it to understand how it works.
/focus [target=focus,noexists]
/focus [target=focus,dead]
/cast [target=focus] Shackle Undead
/run SetRaidTarget(“focus”,2)
Reset the previous macro (might be useful in a messy fight in which you want to shackle a new target before the old one is dead). It removes the raid target icon on your focused unit (unless it’s not your icon but a new one, because the raid leader might have set your target to skull for some reason and you don’t want to remove skull). Then it clears your focus.
/run if GetRaidTargetIndex(“focus”)==2 then SetRaidTarget(“focus”,0) end
/clearfocus