Get Aura By ID
Game Version Wrapper
Finds the first aura on a unit that matches a spell id.
NamespaceEModuleCoreLifecyclewrapper
E:GetAuraByID(unit, spellID, filter)Finds the first aura on a unit that matches a spell id.
Parameters
Section titled “Parameters”- unit: Unit token.
- spellID: Numeric spell id to match.
- filter: Optional aura filter.
Returns
Section titled “Returns”Unpacked aura tuple for the matching aura, or nil.
Example
Section titled “Example”local auraName = E:GetAuraByID("player", 21562, "HELPFUL")Pairs with E:GetAuraByName for addon checks that need exact spell ids.
Source: ElvUI/Game/Shared/General/API.lua:551