Skip to content

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.

  • unit: Unit token.
  • spellID: Numeric spell id to match.
  • filter: Optional aura filter.

Unpacked aura tuple for the matching aura, or nil.

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