LibUnitControl-1.0

Registering Events This library uses CallbackHandler-1.0, so registering for an event is as easy as: local luc = LibStub("LibUnitControl-1.0") function MyAddon:UnitGainControl(unitID) DEFAULT_CHAT_FRAME:AddMessage( UnitName(unitID) .. " has gained control of their character!" ) end function MyAddon:UnitLostControl(unitID) DEFAULT_CHAT_FRAME:AddMessage( UnitName(unitID) .. " has lost control of their character!" ) end function MyAddon:Initialize() luc.RegisterCallback(self,...

A library which provide tools for detecting adverse effects on units (such as those that cause you to lose control of your character). Includes: Individual API's used to indicate whether a specified unit is Asleep/Banished/Charmed/Confused/Disoriented/Ensnared/Feared/Frozen/Horrified/Incapacitated/Polymorphed/Sapped/Shackled/Stunned/Turned/Disarmed/Pacified/Rooted/Silenced (as well as Enraged/Wounded) or has simply lost control of their character. Can differentiate between...