Add zones to deathreporter
This commit is contained in:
@@ -21,11 +21,18 @@ function data.DeathReporter.Init()
|
||||
end
|
||||
recentDeaths[destination] = GetTime()
|
||||
local timer = C_Timer.After(1, function()
|
||||
local text = string.format("%s killed %s with %s (%d)",
|
||||
local zone = data.config.deathReporter.zoneOverride
|
||||
if not zone then
|
||||
zone = string.format("%s (%s)", GetZoneText(), GetSubZoneText())
|
||||
end
|
||||
|
||||
local text = string.format("%s killed %s with %s (%d) in %s",
|
||||
tostring(source),
|
||||
tostring(destination),
|
||||
tostring(spellName),
|
||||
tostring(overkill))
|
||||
tostring(overkill),
|
||||
tostring(zone))
|
||||
|
||||
---@type Message
|
||||
local msg = {
|
||||
channel = "CHANNEL",
|
||||
|
||||
Reference in New Issue
Block a user