Fix deathreporter
This commit is contained in:
@@ -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, "([^-]+)")
|
||||
|
||||
Reference in New Issue
Block a user