Fix annoying deathReporter error

This commit is contained in:
2025-01-06 01:48:10 +01:00
parent aff3e83bab
commit 8bce840497

View File

@@ -101,6 +101,7 @@ function shared.DeathReporter.Init()
systemMessageFrame:SetScript("OnEvent", function(self, event, msg) systemMessageFrame:SetScript("OnEvent", function(self, event, msg)
if not Heimdall_Data.config.deathReporter.enabled then return end if not Heimdall_Data.config.deathReporter.enabled then return end
local source, destination = string.match(msg, "([^ ]+) has defeated ([^ ]+) in a duel") local source, destination = string.match(msg, "([^ ]+) has defeated ([^ ]+) in a duel")
if not source or not destination then return end
source = string.match(source, "([^-]+)") source = string.match(source, "([^-]+)")
destination = string.match(destination, "([^-]+)") destination = string.match(destination, "([^-]+)")
if source and destination then if source and destination then