Various changes #1

Merged
omicron merged 11 commits from absorb into main 2025-08-24 12:40:06 +00:00
Showing only changes of commit 6f954b9d15 - Show all commits

View File

@@ -115,6 +115,19 @@ local statusLists = {
-- Amirdrassil -- Amirdrassil
[427721] = true, -- Nymue, Weaver's burden (dot part) [427721] = true, -- Nymue, Weaver's burden (dot part)
-- Waycrest Manor
[263943] = true, -- Etch
[264378] = true, -- Fragment Soul
-- Ruby Lifepools
[381862] = true, -- Kyrakka, Infernocore
-- Nokhud Offensive
[381692] = true, -- Swift Stab
-- Priory of the Sacred Flame
[447439] = true, -- Savage Mauling
}, },
} }
@@ -122,7 +135,7 @@ local statusLists = {
-- callback function with UnitAuraInfo table as argument -- callback function with UnitAuraInfo table as argument
local function ForEachAuraSlots(unit, fn, continuationToken, ...) local function ForEachAuraSlots(unit, fn, continuationToken, ...)
local GetAuraDataBySlot = C_UnitAuras.GetAuraDataBySlot local GetAuraDataBySlot = C_UnitAuras.GetAuraDataBySlot
local n = select('#', ...) local n = select("#", ...)
for i = 1, n do for i = 1, n do
local slot = select(i, ...) local slot = select(i, ...)
fn(GetAuraDataBySlot(unit, slot)) fn(GetAuraDataBySlot(unit, slot))
@@ -136,7 +149,7 @@ local function ForEachAuraFiltered(unit, filter, fn)
local continuationToken = nil local continuationToken = nil
repeat repeat
continuationToken = ForEachAuraSlots(unit, fn, UnitAuraSlots(unit, filter, nil, continuationToken)) continuationToken = ForEachAuraSlots(unit, fn, UnitAuraSlots(unit, filter, nil, continuationToken))
until (continuationToken == nil) until continuationToken == nil
end end
-- Similar to what AuraUtils.ForEachAura does except the callback fn takes a -- Similar to what AuraUtils.ForEachAura does except the callback fn takes a
@@ -146,7 +159,6 @@ local function ForEachAura(unit, fn)
ForEachAuraFiltered(unit, "HARMFUL", fn) ForEachAuraFiltered(unit, "HARMFUL", fn)
end end
---@return AuraList ---@return AuraList
function AuraList.new(cls, ...) function AuraList.new(cls, ...)
--- I really dislike duplicating this everywhere but it makes --- I really dislike duplicating this everywhere but it makes
@@ -163,7 +175,6 @@ function AuraList:Init(unitframe)
self.statusCount = {} self.statusCount = {}
self.auras = {} -- map AuraInstanceID to UnitAuraInfo table self.auras = {} -- map AuraInstanceID to UnitAuraInfo table
self.triggers = {} self.triggers = {}
self.triggersBySpell = {} self.triggersBySpell = {}
self.triggersByStatus = {} self.triggersByStatus = {}