From 8e90d43b6c49819d41ee22ff080890c10fd71dae Mon Sep 17 00:00:00 2001 From: Xurkon Date: Thu, 4 Jun 2026 16:43:33 -0500 Subject: [PATCH] perf: ignore bystander deaths for learner refreshes --- Modules/QuestieLearner.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Modules/QuestieLearner.lua b/Modules/QuestieLearner.lua index 73c9149..21beb77 100644 --- a/Modules/QuestieLearner.lua +++ b/Modules/QuestieLearner.lua @@ -3088,6 +3088,13 @@ function QuestieLearner:OnCombatLogEvent(timestamp, eventType, srcGUID, srcName, -- Questie:Debug(Questie.DEBUG_LEARNER, "[QuestieLearner] Kill cached for correlation:", npcId, dstName, "@", tostring(px), tostring(py), "zone", tostring(zoneId)) end + -- UNIT_DIED fires for nearby mobs killed by other players. Keep it only as + -- short-lived evidence for quest-progress correlation; otherwise bystander + -- kills can churn learner spawn data and redraw active quest pins. + if eventType ~= "PARTY_KILL" then + return + end + -- Unconditionally map the spawn position for Ascension DB building self:LearnNPC(npcId, name, nil, nil, nil, nil, px, py, zoneId)