From 234aaf60bbf6984298a04087c7a04d6e5447c0da Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Mon, 16 Nov 2026 22:04:37 +0000 Subject: [PATCH] Forever Combat Nameplates: the realm's answer counts whatever shape the sender's realm part has (Name-Realm or Name Realm) --- .../ForeverCombatNameplates/ForeverCombatNameplates.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/PlayerbotV2/Addon/ForeverCombatNameplates/ForeverCombatNameplates.lua b/src/modules/PlayerbotV2/Addon/ForeverCombatNameplates/ForeverCombatNameplates.lua index 051dcc9b85..356bbdca86 100644 --- a/src/modules/PlayerbotV2/Addon/ForeverCombatNameplates/ForeverCombatNameplates.lua +++ b/src/modules/PlayerbotV2/Addon/ForeverCombatNameplates/ForeverCombatNameplates.lua @@ -114,8 +114,10 @@ local function ownReply(channel, sender) local me = UnitName("player") if isSecret(me) or not me then return false end if sender == me then return true end - local realm = GetNormalizedRealmName and GetNormalizedRealmName() - return realm and sender == me .. "-" .. realm + -- The realm part comes in different shapes ("Name-Realm", "Name-RealmNoSpaces", or "Name Realm" on some clients); + -- character names never hold a space or a hyphen, so the part before the first one is the name. + local name = sender:match("^([^%s%-]+)") + return name == me end events:RegisterEvent("ADDON_LOADED")