Skip to content

Commit

Permalink
auras: Update element
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed Jan 12, 2024
1 parent ed3a2b5 commit cc0035f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions elements/auras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ local function UpdateAuras(self, event, unit, updateInfo)
auras.activeBuffs = table.wipe(auras.activeBuffs or {})
buffsChanged = true

local slots = {UnitAuraSlots(unit, buffFilter)}
local slots = {C_UnitAuras.GetAuraSlots(unit, buffFilter)}
for i = 2, #slots do -- #1 return is continuationToken, we don't care about it
local data = processData(auras, unit, C_UnitAuras.GetAuraDataBySlot(unit, slots[i]))
auras.allBuffs[data.auraInstanceID] = data
Expand All @@ -348,7 +348,7 @@ local function UpdateAuras(self, event, unit, updateInfo)
auras.activeDebuffs = table.wipe(auras.activeDebuffs or {})
debuffsChanged = true

slots = {UnitAuraSlots(unit, debuffFilter)}
slots = {C_UnitAuras.GetAuraSlots(unit, debuffFilter)}
for i = 2, #slots do
local data = processData(auras, unit, C_UnitAuras.GetAuraDataBySlot(unit, slots[i]))
auras.allDebuffs[data.auraInstanceID] = data
Expand Down Expand Up @@ -590,7 +590,7 @@ local function UpdateAuras(self, event, unit, updateInfo)
buffs.active = table.wipe(buffs.active or {})
buffsChanged = true

local slots = {UnitAuraSlots(unit, buffFilter)}
local slots = {C_UnitAuras.GetAuraSlots(unit, buffFilter)}
for i = 2, #slots do
local data = processData(buffs, unit, C_UnitAuras.GetAuraDataBySlot(unit, slots[i]))
buffs.all[data.auraInstanceID] = data
Expand Down Expand Up @@ -699,7 +699,7 @@ local function UpdateAuras(self, event, unit, updateInfo)
debuffs.active = table.wipe(debuffs.active or {})
debuffsChanged = true

local slots = {UnitAuraSlots(unit, debuffFilter)}
local slots = {C_UnitAuras.GetAuraSlots(unit, debuffFilter)}
for i = 2, #slots do
local data = processData(debuffs, unit, C_UnitAuras.GetAuraDataBySlot(unit, slots[i]))
debuffs.all[data.auraInstanceID] = data
Expand Down

0 comments on commit cc0035f

Please sign in to comment.