Fix deathreporter

This commit is contained in:
2025-01-12 01:16:06 +01:00
parent d333901576
commit 636ef87cb1
6 changed files with 15 additions and 23 deletions

View File

@@ -92,14 +92,6 @@ function shared.DeathReporter.Init()
SetMapByID(GetCurrentMapAreaID())
local zoneId = GetCurrentMapAreaID()
source = source or "unknown"
destination = destination or "unknown"
spellName = spellName or "unknown"
location = location or "unknown"
zoneId = zoneId or 0
x = x or 0
y = y or 0
---@type Message
local msg = {
channel = "CHANNEL",
@@ -187,7 +179,7 @@ function shared.DeathReporter.Init()
local source, destination = string.match(msg, "([^ ]+) has defeated ([^ ]+) in a duel")
if Heimdall_Data.config.deathReporter.debug then
print(string.format("[%s] Received system message: %s", ModuleName, msg))
print(string.format("[%s] Source: %s, Destination: %s", ModuleName, source, destination))
print(string.format("[%s] Source: %s, Destination: %s", ModuleName, tostring(source), tostring(destination)))
end
if not source or not destination then return end
source = string.match(source, "([^-]+)")