Macro Help; Targets and Whispers

Hail Adventurers!

I went through about 2 weeks worth of posts and couldn’t find what I was looking for, so I’m posting for help! :slight_smile:

I’m looking for a macro that targets the nearest friendly player on whom to cast a spell that can only be cast on friendly players, and not on self.

I’m looking for a macro to inform a player that I’ve cast a spell. The one I created 100 years ago looks like this:

/cast Ironbark
/script Ironbark.Click()
/run SendChatMessage(“Casting " … GetSpellLink(“Ironbark”) …”. 20% Damage Mitigation over 12 Seconds - GO!",“whisper”,nil,GetUnitName(“target”,1):gsub(" “,”",2))

I wrote this back when druids had Symbiosis :stuck_out_tongue: Things have changed since…the macro still works, but it spits out a few errors, too. I’d like an updated version. :slight_smile:

Any help would be appreciated!

~Amillia

https://www.curseforge.com/wow/addons/macro-talk
will vastly simplify your life.

As for casting the spell itself, you want this:

Thank you most kindly. I’ll check out the addon :slight_smile:

~A