Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

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:
  • 0: the effect should not be displayed.
  • 1: the effect should be displayed as a brief alert when it occurs.
  • 2: the effect should be displayed for its full duration.

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[]

Shadowlands Patch 9.0.1 (2020-10-13): Moved to C_LossOfControl.GetActiveLossOfControlData()
Mists of Pandaria Patch 5.1.0 (2012-11-27): Added as C_LossOfControl.GetEventInfo()

Advertisement