Release 4.6.2: native smoothing, split history, pet attribution and UI recolor

This commit is contained in:
2026-11-06 19:53:28 -04:00
parent ccf70c7135
commit 4a5463a764
14 changed files with 435 additions and 41 deletions
+14 -8
View File
@@ -54,15 +54,21 @@ local function trim(str)
return clean
end
-- "Wolf (Hunter)" from the GUID-based sources is shown as "Pet: Wolf"
-- Cache labels per pet and spell; repeated hits only perform table lookups.
local pet_actions = {}
local function PetAction(source)
local action = pet_actions[source]
if not action then
action = "Pet: " .. gsub(source, "%s%(.-%)$", "")
pet_actions[source] = action
local function PetAction(source, action)
local pet = pet_actions[source]
if not pet then
pet = { prefix = "Pet: " .. gsub(source, "%s%(.-%)$", "") .. " - ", spells = {} }
pet_actions[source] = pet
end
return action
action = action or UNKNOWN or "Unknown"
local label = pet.spells[action]
if not label then
label = pet.prefix .. action
pet.spells[action] = label
end
return label
end
local function combat()
@@ -335,7 +341,7 @@ parser.AddData = function(self, source, action, target, value, school, datatype,
-- remove pet data
entry[source] = nil
action = PetAction(source)
action = PetAction(source, action)
source = data["classes"][source]
-- write data into owner