From 7070b4b263c80f380102a4193de490df1d67fdef Mon Sep 17 00:00:00 2001 From: Relationship <139162359+Relationship-OctoWoW@users.noreply.github.com> Date: Sat, 18 Jul 2026 20:09:48 +0100 Subject: [PATCH] Add files via upload --- RelationshipsPVP.lua | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/RelationshipsPVP.lua b/RelationshipsPVP.lua index 7b38a39..959c66d 100644 --- a/RelationshipsPVP.lua +++ b/RelationshipsPVP.lua @@ -156,6 +156,7 @@ local function FinalizeSpendableHonor(key, clear) end -- Handle a currentBG transition: capture on enter, finalize on leave. +local FinalizeMatchKillers local function OnCurrentBGChanged(prevKey, newKey) if newKey and newKey ~= prevKey then if prevKey then FinalizeSpendableHonor(prevKey, true) end @@ -242,7 +243,7 @@ end -- Called when we transition out of a BG: promote currentMatch tallies to -- "last match" and roll them into the all-time KOS table. -local function FinalizeMatchKillers() +function FinalizeMatchKillers() local db = RelationshipsPVPCharDB if not db or not db.currentMatch then return end -- Deaths are now folded into lastMatchKilledBy / killedByAll live in @@ -1152,14 +1153,10 @@ function RelationshipsPVP_Refresh() end if RelationshipsPVPNemesisText then - local nm, cnt = TopKiller(db.lastMatchKilledBy) + local nm = TopKiller(db.lastMatchKilledBy) if nm then - local bgTag = "" - if db.lastMatchKey and BG_NAMES[db.lastMatchKey] then - bgTag = " |cff888888(" .. BG_NAMES[db.lastMatchKey] .. ")|r" - end RelationshipsPVPNemesisText:SetText( - "|cffff9966Last BG Nemesis:|r |cffffffff" .. nm .. "|r |cffff6666x" .. cnt .. "|r" .. bgTag + "|cffff9966Last BG Nemesis:|r |cffffffff" .. nm .. "|r" ) else RelationshipsPVPNemesisText:SetText("|cffff9966Last BG Nemesis:|r |cff888888none yet|r") @@ -1167,10 +1164,10 @@ function RelationshipsPVP_Refresh() end if RelationshipsPVPKOSText then - local nm, cnt = TopKiller(db.killedByAll) + local nm = TopKiller(db.killedByAll) if nm then RelationshipsPVPKOSText:SetText( - "|cffff3333KOS:|r |cffffffff" .. nm .. "|r |cffff6666x" .. cnt .. "|r" + "|cffff3333KOS:|r |cffffffff" .. nm .. "|r" ) else RelationshipsPVPKOSText:SetText("|cffff3333KOS:|r |cff888888none yet|r")