You can look in FrameXML/LossOfControlFrame.lua for examples of how the C_LossOfControl system is meant to be used. However, not every debuff that causes a Loss Of Control event is caught by the C_LossOfControl system, so you'll still need either some database to catch those debuffs or else scan tooltips for "[Rr]ooted".
|