C_LossOfControl
namespaceavailable in: camelotStatus in wowlua
5 functions: 0 implemented, 1 recorded, 4 guessed. 6 events, 2 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
GetActiveLossOfControlData | Returns info about an active loss-of-control effect.(index: number): LossOfControlData? | guessed |
GetActiveLossOfControlDataByUnit | Returns info about an active loss-of-control effect.(unitToken: string, index: number): LossOfControlData? | recorded |
GetActiveLossOfControlDataCount | Returns the number of active loss-of-control effects.(): number | guessed |
GetActiveLossOfControlDataCountByUnit | Returns how many loss of control effects are active on a unit. · by wowlua(unitToken: string): number | guessed |
GetActiveLossOfControlDuration | Returns 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
| event | payload | fired by the emulator |
|---|---|---|
LOSS_OF_CONTROL_ADDED | unitTarget: string, effectIndex: number | not implemented |
LOSS_OF_CONTROL_COMMENTATOR_ADDED | victim: string, effectIndex: number | not implemented |
LOSS_OF_CONTROL_COMMENTATOR_UPDATE | victim: string | not implemented |
LOSS_OF_CONTROL_UPDATE | unitTarget: string | not implemented |
PLAYER_CONTROL_GAINED | no payload | implemented |
PLAYER_CONTROL_LOST | no payload | implemented |
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.