diff --git a/Modules/DeathReporter.lua b/Modules/DeathReporter.lua index 30e8cf3..763e08b 100644 --- a/Modules/DeathReporter.lua +++ b/Modules/DeathReporter.lua @@ -100,7 +100,9 @@ function shared.DeathReporter.Init() systemMessageFrame:RegisterEvent("CHAT_MSG_SYSTEM") systemMessageFrame:SetScript("OnEvent", function(self, event, msg) 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") + source = string.match(source, "([^-]+)") + destination = string.match(destination, "([^-]+)") if source and destination then print(string.format("Detected duel between %s and %s", source, destination)) local now = GetTime()