I have a macro that casts LOH on target or myself if the target is NPC. It then blasts P and R chat saying I've casted LOH on. If it's casting on myself than the dang thing says the NPC's name. How do I make it say my name if I'm targeting an NPC? I can't do
I would recommend getting Tankadin2 for things like this. It's a little overkill if you don't use the rest of the functionality, but I'm in the same boat and it works fine.
/run if not UnitPlayerControlled("target") then name = "<your name>" else name = UnitName("target") end SendChatMessage("Using LoH on " .. name, "PARTY"); SendChatMessage("Using LoH on " .. name, "RAID");