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 spellIdThe 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.
Returns
Aura auraThe aura object or nil.