Method Unit:GetOwnedAura [-] [+]

Returns the owned Aura of the given spell on the Unit, or nil if not found. Similar to GetAura but searches owned auras and optionally excludes a specific Aura.

Synopsis

aura = Unit:GetOwnedAura( spellId )

aura = Unit:GetOwnedAura( spellId, caster )

aura = Unit:GetOwnedAura( spellId, caster, itemCaster )

aura = Unit:GetOwnedAura( spellId, caster, itemCaster, reqEffMask )

aura = Unit:GetOwnedAura( spellId, caster, itemCaster, reqEffMask, exceptAura )

Arguments

number spellId

The spell ID to look up.

Valid numbers: integers from 0 to 4,294,967,295.

number caster (ObjectGuid)

Valid numbers: integers from 0 to 18,446,744,073,709,551,615.

number itemCaster (ObjectGuid)

Valid numbers: integers from 0 to 18,446,744,073,709,551,615.

number reqEffMask (0)

Bitmask of effects that must be present, or 0 for any.

Valid numbers: integers from 0 to 255.

Aura exceptAura (nil)

An Aura to exclude from the search, or nil for none.

Returns

Aura aura

The aura object or nil.

Generated on
© 2010 - 2024 Eluna Lua Engine