Posted by nefertem on Sat, 22 Sep 2012 22:49:03
I've been unable to locate an API function or event variable to determine whether a unit is silenced or not, in the standard sense. Silenced meaning unable to cast spells.
GetMuteStatus Returns whether a character is muted or silenced on a chat channel IsSilenced Returns whether a character is silenced on a chat channel UnitIsSilenced Returns whether a character is silenced on a voice channel
Please tell me I'm just overlooking something (Manythanks=)),
Posted by jnwhiteh on Sun, 23 Sep 2012 06:35:20
There isn't one. Silencing is an effect of a spell, not an attribute of the character. You'd have to scan the debuffs to figure it out as far as I can tell.
Posted by efindel on Wed, 26 Sep 2012 13:33:59
Whose silence are you interested in? Depending on what you're trying to do, you might be able to watch for the event
SPELL_FAILED_INTERRUPTED_COMBATmight also be of use, since many spells that silence also interrupt.
Posted by nefertem on Thu, 04 Oct 2012 17:36:49
Good idea, thank you.