v0.13.8

C_LossOfControl

namespaceavailable in: camelot

Status in wowlua

5 functions: 0 implemented, 1 recorded, 4 guessed. 6 events, 2 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
GetActiveLossOfControlDataReturns info about an active loss-of-control effect.
(index: number): LossOfControlData?
guessed
GetActiveLossOfControlDataByUnitReturns info about an active loss-of-control effect.
(unitToken: string, index: number): LossOfControlData?
recorded
GetActiveLossOfControlDataCountReturns the number of active loss-of-control effects.
(): number
guessed
GetActiveLossOfControlDataCountByUnitReturns how many loss of control effects are active on a unit. · by wowlua
(unitToken: string): number
guessed
GetActiveLossOfControlDurationReturns the duration of a loss of control effect on a unit. · by wowlua
(unitToken: string, index: number): LuaDurationObject?
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
LOSS_OF_CONTROL_ADDEDunitTarget: string, effectIndex: numbernot implemented
LOSS_OF_CONTROL_COMMENTATOR_ADDEDvictim: string, effectIndex: numbernot implemented
LOSS_OF_CONTROL_COMMENTATOR_UPDATEvictim: stringnot implemented
LOSS_OF_CONTROL_UPDATEunitTarget: stringnot implemented
PLAYER_CONTROL_GAINEDno payloadimplemented
PLAYER_CONTROL_LOSTno payloadimplemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("LOSS_OF_CONTROL_ADDED").

Structures

  • LossOfControlData · locType, spellID, displayText, iconTexture, startTime?, timeRemaining?, duration?, lockoutSchool, priority, displayType, auraInstanceID?

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (LossOfControl system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.