Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns info about an active loss-of-control effect.
event = C_LossOfControl.GetActiveLossOfControlData(index) = C_LossOfControl.GetActiveLossOfControlDataByUnit(unitToken, index)
Arguments[]
GetActiveLossOfControlData[]
- index
- number - Ranging from 1 to C_LossOfControl.GetActiveLossOfControlDataCount()
GetActiveLossOfControlDataByUnit[]
- unitToken
- string : UnitId - Only works while in commentator mode.
- index
- number
Returns[]
- event
- LossOfControlData?
Field | Type | Description |
---|---|---|
locType | string | Effect type, e.g. "SCHOOL_INTERRUPT" |
spellID | number | Spell ID causing the effect |
displayText | string | Name of the effect, e.g. "Interrupted" |
iconTexture | number | FileID |
startTime | number? | Time at which this effect began, as per GetTime() |
timeRemaining | number? | Number of seconds remaining. |
duration | number? | Duration of the effect, in seconds. |
lockoutSchool | number | Locked out spell school identifier; can be fed into GetSchoolString() to retrieve school name. |
priority | number | |
displayType | number | An integer specifying how this event should be displayed to the player, per the Interface-configured options:
|
Details[]
- Loss of Control debuffs that are applied only while standing in an Area of Effect may not include a startTime, timeRemaining nor duration in the table returned. An example of this is Vol'zith the Whisperer's Yawning Gate ability.
Patch changes[]
Patch 9.0.1 (2020-10-13): Moved to C_LossOfControl.GetActiveLossOfControlData()
Patch 5.1.0 (2012-11-27): Added as C_LossOfControl.GetEventInfo()