C_UnitAuras .GetAuraDataByIndex
Jump to navigation
Jump to search
Needs summary.
aura = C_UnitAuras.GetAuraDataByIndex(unitToken, index [, filter])
Arguments
- unitToken
- string : UnitId
- index
- number
- filter
- string? - A list of filters, separated by pipe chars or spaces. Otherwise defaults to "HELPFUL".
Filters
Filter | Description |
---|---|
"HELPFUL" | Buffs |
"HARMFUL" | Debuffs |
"PLAYER" | |
"RAID" | Buffs the player can apply and debuffs the player can dispell |
"CANCELABLE" | Buffs that can be cancelled with /cancelaura or CancelUnitBuff() |
"NOT_CANCELABLE" | Buffs that cannot be cancelled |
"INCLUDE_NAME_PLATE_ONLY" | Auras that should be shown on nameplates |
"MAW" | Torghast Anima Powers |
Returns
- aura
- AuraData?
Field | Type | Description | |
---|---|---|---|
applications | number | ||
auraInstanceID | number | ||
canApplyAura | boolean | Whether or not the player can apply this aura. | |
charges | number | ||
dispelName | string? | ||
duration | number | ||
expirationTime | number | ||
icon | number | ||
isBossAura | boolean | Whether or not this aura was applied by a boss. | |
isFromPlayerOrPlayerPet | boolean | Whether or not this aura was applied by a player or their pet. | |
isHarmful | boolean | Whether or not this aura is a debuff. | |
isHelpful | boolean | Whether or not this aura is a buff. | |
isNameplateOnly | boolean | Whether or not this aura should appear on nameplates. | |
isRaid | boolean | Whether or not this aura meets the conditions of the RAID aura filter.
| |
isStealable | boolean | ||
maxCharges | number | ||
name | string | The name of the aura. | |
nameplateShowAll | boolean | Whether or not this aura should always be shown irrespective of any usual filtering logic. | |
nameplateShowPersonal | boolean | ||
points | array | Variable returns - Some auras return additional values that typically correspond to something shown in the tooltip, such as the remaining strength of an absorption effect. | |
sourceUnit | string? | Token of the unit that applied the aura. | |
spellId | number | The spell ID of the aura. | |
timeMod | number |
Details
C_UnitAuras.GetBuffDataByIndex()
is an alias forC_UnitAuras.GetAuraDataByIndex(unit, index, "HELPFUL")
, returning only buffs and ignores any HARMFUL filter.C_UnitAuras.GetDebuffDataByIndex()
is an alias forC_UnitAuras.GetAuraDataByIndex(unit, index, "HARMFUL")
, returning only debuffs and ignores any HELPFUL filter.