v0.13.8

C_UnitAuras

namespaceavailable in: camelot

Status in wowlua

39 functions: 9 implemented, 1 recorded, 29 guessed. 6 events, 3 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
AddAuraSoundRegisters a sound for an aura event. The sound is stopped after five seconds of playback. The throttleSeconds value must be between 0 and 5 seconds, inclusive.
(trigger: UnitAuraSoundTrigger, sound: UnitAuraSoundInfo): number?
guessed
AddBlockedAuraBlocks the aura on the unit from being shown. · by wowlua
(unit: UnitTokenRestrictedForAddOns, auraInstanceID: number)
guessed
AddPrivateAuraAnchorAdds an anchor where private auras of a unit are shown; returns the anchor ID. · by wowlua
(args: AddPrivateAuraAnchorArgs): number?
guessed
AuraIsBigDefensiveWhether the aura is a major defensive effect. · by wowlua
(spellID: SpellIdentifier): boolean
guessed
AuraIsPrivateWhether the aura is a private aura, which addons cannot see. · by wowlua
(spellID: SpellIdentifier): boolean
guessed
CancelAuraByInstanceIDCancels the aura on the unit. · by wowlua
(unit: UnitTokenRestrictedForAddOns, auraInstanceID: number)
guessed
ClearBlockedAurasClears the list of blocked auras on the unit. · by wowlua
(unit: UnitTokenRestrictedForAddOns)
guessed
DoesAuraHaveExpirationTimeReturns true if an aura instance will expire after a certain amount of time.
(auraInstanceUnit: string, auraInstanceID: number): boolean
guessed
GetAuraApplicationDisplayCountFormats a string for displaying the number of applications an aura has present.
(auraInstanceUnit: string, auraInstanceID: number, minDisplayCount: number, maxDisplayCount: number?): string
guessed
GetAuraBaseDurationReturns the base duration of the given spell (or aura). Takes an optional spellID to use as the new duration if that cannot be derived from the aura, if that value isn't supplied the aura's spellID will be used
(auraInstanceUnit: string, auraInstanceID: number, spellID: SpellIdentifier?): number?
guessed
GetAuraCasterGUIDReturns the GUID of the aura's caster. · by wowlua
(auraInstanceUnit: string, auraInstanceID: number): string?
guessed
GetAuraDataByAuraInstanceIDReturns information about an aura on a unit by a given aura instance ID.
(unit: UnitTokenRestrictedForAddOns, auraInstanceID: number): AuraData?
implemented
GetAuraDataByIndexReturns the aura on the unit at the given index. · by wowlua
(unit: UnitTokenRestrictedForAddOns, index: number, filter: AuraFilters?): AuraData?
implemented
GetAuraDataBySlotReturns information about an aura on a unit by a given slot index.
(unit: UnitTokenRestrictedForAddOns, slot: number): AuraData?
implemented
GetAuraDataBySpellNameReturns the aura on the unit with the given spell name. · by wowlua
(unit: UnitTokenRestrictedForAddOns, spellName: string, filter: AuraFilters?): AuraData?
implemented
GetAuraDispelTypeColorQueries the dispel type associated with an aura instance and remaps it to a color via a curve, with the dispel type ID used as the 'x' value.
(auraInstanceUnit: string, auraInstanceID: number, curve: LuaColorCurveObject): ColorMixin
guessed
GetAuraDurationReturns a duration object for the aura, running from its start to its expiration. · by wowlua
(auraInstanceUnit: string, auraInstanceID: number): LuaDurationObject
guessed
GetAuraSlotsReturns a continuation token, then the slots of the unit's auras that pass the filter; pass the token back to get the next slots. · by wowlua
(unit: UnitTokenRestrictedForAddOns, filter: AuraFilters?, maxSlots: number?, continuationToken: number?): (number?, number)
implemented
GetBuffDataByIndexReturns the helpful aura on the unit at the given index. · by wowlua
(unit: UnitTokenRestrictedForAddOns, index: number, filter: AuraFilters?): AuraData?
implemented
GetCooldownAuraBySpellIDObtains the spell ID of a passive cooldown effect associated with a spell.
(spellID: SpellIdentifier): number?
guessed
GetDebuffDataByIndexReturns the harmful aura on the unit at the given index. · by wowlua
(unit: UnitTokenRestrictedForAddOns, index: number, filter: AuraFilters?): AuraData?
implemented
GetGroupBuffVisualAlertsReturns the alerts passed to SetGroupBuffVisualAlerts plus an entry for every linked rank spell of those group buffs.
(): GroupBuffVisualAlertInfo[]
recorded
GetHiddenGroupBuffsReturns the spell IDs passed to SetHiddenGroupBuffs plus every linked rank spell of those group buffs.
(): number[]
implemented
GetPlayerAuraBySpellIDReturns information about an aura on the player by a given spell ID.
(spellID: SpellIdentifier): AuraData?
implemented
GetRefreshCarryOverDurationReturns the client-predicted amount of time that a new spellcast of the same spell would carry over to the new application of that aura. Takes an optional spellID to use as the new duration if that cannot be derived from the aura, if that value isn't supplied the aura's spellID will be used
(auraInstanceUnit: string, auraInstanceID: number, spellID: SpellIdentifier?): number?
guessed
GetRefreshExtendedDurationReturns the client-predicted new duration of this aura if it were cast again right now. Takes an optional spellID to use as the new duration if that cannot be derived from the aura, if that value isn't supplied the aura's spellID will be used
(auraInstanceUnit: string, auraInstanceID: number, spellID: SpellIdentifier?): number?
guessed
GetUnitAuraBySpellIDReturns the first instance of an aura on a unit matching a given spell ID. Returns nil if no such aura is found. Additionally can return nil if querying a unit that is not visible (eg. party members on other maps).
(unit: UnitTokenRestrictedForAddOns, spellID: SpellIdentifier): AuraData?
guessed
GetUnitAuraInstanceIDsReturns the instance IDs of the unit's auras that pass the filter. · by wowlua
(unit: UnitTokenRestrictedForAddOns, filter: AuraFilters, maxCount: number?, sortRule: UnitAuraSortRule, sortDirection: UnitAuraSortDirection): number[]
guessed
GetUnitAurasReturns the unit's auras that pass the filter. · by wowlua
(unit: UnitTokenRestrictedForAddOns, filter: AuraFilters, maxCount: number?, sortRule: UnitAuraSortRule, sortDirection: UnitAuraSortDirection): AuraData[]
guessed
IsAuraFilteredOutByInstanceIDTests if an aura passes a specific filter.
(unit: UnitTokenRestrictedForAddOns, auraInstanceID: number, filter: AuraFilters): boolean
guessed
RemoveAuraSoundRemoves an aura sound registered with C_UnitAuras.AddAuraSound. · by wowlua
(auraSoundID: number)
guessed
RemovePrivateAuraAnchorRemoves a private aura anchor added with C_UnitAuras.AddPrivateAuraAnchor. · by wowlua
(anchorID: number)
guessed
RemovePrivateAuraAppliedSoundRemoves a sound that plays when a private aura is applied. · by wowlua
not in Blizzard's documentation
guessed
ResetAuraDataProviderResets the aura data provider to its default. · by wowlua
()
guessed
SetGroupBuffVisualAlertsSets the visual alerts shown for missing group buffs. · by wowlua
(visualAlerts: GroupBuffVisualAlertInfo[])
guessed
SetHiddenGroupBuffsSets which group buffs are hidden. · by wowlua
(spellIDs: number[])
guessed
SetPrivateWarningTextAnchorAnchors the private aura warning text to a frame. · by wowlua
(parent: Frame, anchor: AnchorBinding?)
guessed
SwitchAuraDataProviderSwitches to the other aura data provider. · by wowlua
()
guessed
WantsAlteredFormWhether the unit wants to be shown in its altered form. · by wowlua
(unit: string): boolean
guessed

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

Events

eventpayloadfired by the emulator
AURA_DATA_PROVIDER_SWITCHuseRealDataProvider: booleannot implemented
GROUP_BUFF_VISUAL_ALERTS_CHANGEDvisualAlerts: GroupBuffVisualAlertInfo[]implemented
HIDDEN_GROUP_BUFFS_CHANGEDspellIDs: number[]implemented
UNIT_AURAunitTarget: string, updateInfo: UnitAuraUpdateInfoimplemented
UNIT_AURA_BLOCKEDunitTarget: string, auraInstanceID: numbernot implemented
UNIT_AURA_BLOCK_LIST_CLEAREDunitTarget: stringnot implemented

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

sources

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