Wowpedia

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

READ MORE

Wowpedia
mNo edit summary
Tag: WoW API docs
Tag: WoW API docs
Line 5: Line 5:
 
==Arguments==
 
==Arguments==
 
;unit : {{api|t=t|string}}
 
;unit : {{api|t=t|string}}
;filter : {{api|t=t|string}} - Similar to {{api|UnitAura}} except there must exactly one of "HELPFUL" or "HARMFUL"
+
;filter : {{api|t=t|string}} - Similar to {{api|UnitAura}}; however, either "HELPFUL" or "HARMFUL" is required.
 
;maxSlots : {{api|t=t?|number}} - The maximum number of slots to return
 
;maxSlots : {{api|t=t?|number}} - The maximum number of slots to return
 
;continuationToken : {{api|t=t?|number}} - The number of slots to skip (see details).
 
;continuationToken : {{api|t=t?|number}} - The number of slots to skip (see details).

Revision as of 22:04, 1 May 2021

Returns an ordered list of auras used with UnitAuraBySlot()

continuationToken, ... = UnitAuraSlots("unit" [, "filter", maxSlots, continuationToken])

Arguments

unit
string
filter
string - Similar to UnitAura; however, either "HELPFUL" or "HARMFUL" is required.
maxSlots
number?Optional. Could be nil. - The maximum number of slots to return
continuationToken
number?Optional. Could be nil. - The number of slots to skip (see details).

Returns

continuationToken
number?Optional. Could be nil. - Indicates that maxSlots was reached, or nil otherwise (see details).
...
number - A batch of slots used with UnitAuraBySlot(unit, slot).

Details

  • Once maxSlots is reached, the continuationToken allows subsequent function calls to skip ahead to the next position.
  • This does not imply that more slots exist; the function does not check after reaching maxSlots.

Patch changes

See also