If the unit has the buff, then the world buffs can be selected from the return values. The debuff limit is at 16 for Classic Era and 40 for BCC.On retail a unit can have an unlimited amount of buffs/debuffs."HELPFUL|HARMFUL" will always return nothing. Filters can be mutually exclusive, e.g.UnitBuff() will ignore any HARMFUL filter, and vice versa UnitDebuff() will ignore any HELPFUL filter.Returns nil when there is no aura for that index or when the aura doesn't pass the filter.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. timeMod number - The scaling factor used for displaying time left. nameplateShowAll boolean - If the aura should be shown on nameplates. castByPlayer boolean - If the aura was applied by a player. isBossDebuff boolean - If the aura was cast by a boss. canApplyAura boolean - If the player can apply the aura. nameplateShowPersonal boolean - If the aura should be shown on the player/pet/vehicle nameplate. isStealable boolean - If the aura may be stolen. source string : UnitId - The unit that applied the aura. to get the remaining duration: expirationtime - GetTime() 7. expirationTime number - Time the aura expires compared to GetTime(), e.g. duration number - The full duration of the aura in seconds. dispelType string? - The locale-independent magic type of the aura: Curse, Disease, Magic, Poison, otherwise nil. count number - The amount of stacks, otherwise 0. name string - The localized name of the aura, otherwise nil if there is no aura for the index. UnitDebuff() is an alias for UnitAura(unit, index, "HARMFUL"), returning only debuffs.īuffs the player can apply and debuffs the player can dispellīuffs that can be cancelled with /cancelaura or CancelUnitBuff().UnitBuff() is an alias for UnitAura(unit, index, "HELPFUL"), returning only buffs.filter string ? - A list of filters, separated by pipe chars or spaces. Īrguments unit string : UnitId index number - Index of an aura to query. SpellId, canApplyAura, isBossDebuff, castByPlayer, nameplateShowAll, timeMod. Name, icon, count, dispelType, duration, expirationTime, source, isStealable, nameplateShowPersonal,
0 Comments
Leave a Reply. |