Fix death reporting with stinky
This commit is contained in:
@@ -36,6 +36,7 @@ for i, part in ipairs(toNotify) do
|
|||||||
toNotify[i] = strtrim(part)
|
toNotify[i] = strtrim(part)
|
||||||
end
|
end
|
||||||
WeakAurasSaved.Cyka.stinkies = {}
|
WeakAurasSaved.Cyka.stinkies = {}
|
||||||
|
if not WeakAurasSaved.Cyka.PlayerFactionCache then WeakAurasSaved.Cyka.PlayerFactionCache = {} end
|
||||||
|
|
||||||
|
|
||||||
---@class Message
|
---@class Message
|
||||||
@@ -140,7 +141,7 @@ Message = {
|
|||||||
if not aura_env.config.killNotifyGuild then return end
|
if not aura_env.config.killNotifyGuild then return end
|
||||||
if aura_env.config.debug then print("Queueing notify guild:") end
|
if aura_env.config.debug then print("Queueing notify guild:") end
|
||||||
local text = string.format("%s %s убил %s с помощью %s", faction, source, destination, spellName)
|
local text = string.format("%s %s убил %s с помощью %s", faction, source, destination, spellName)
|
||||||
local message = Message.new(text, nil, "GUILD", true)
|
local message = Message.new(text, nil, "GUILD")
|
||||||
if aura_env.config.debug then DevTools_Dump(message) end
|
if aura_env.config.debug then DevTools_Dump(message) end
|
||||||
table.insert(aura_env.messageQueue, message)
|
table.insert(aura_env.messageQueue, message)
|
||||||
end,
|
end,
|
||||||
@@ -153,7 +154,7 @@ Message = {
|
|||||||
if aura_env.config.debug then print("Queueing notify whisper:") end
|
if aura_env.config.debug then print("Queueing notify whisper:") end
|
||||||
local text = string.format("%s %s убил %s с помощью %s", faction, source, destination, spellName)
|
local text = string.format("%s %s убил %s с помощью %s", faction, source, destination, spellName)
|
||||||
for _, to in ipairs(toNotify) do
|
for _, to in ipairs(toNotify) do
|
||||||
local message = Message.new(text, to, "WHISPER", true)
|
local message = Message.new(text, to, "WHISPER")
|
||||||
if aura_env.config.debug then DevTools_Dump(message) end
|
if aura_env.config.debug then DevTools_Dump(message) end
|
||||||
table.insert(aura_env.messageQueue, message)
|
table.insert(aura_env.messageQueue, message)
|
||||||
end
|
end
|
||||||
@@ -229,6 +230,7 @@ local recentlyKilled = {}
|
|||||||
aura_env.RegisterKill = function(source, destination, spellName, overkill)
|
aura_env.RegisterKill = function(source, destination, spellName, overkill)
|
||||||
if recentlyKilled[source] and recentlyKilled[source] > GetTime() - killSpamTime then
|
if recentlyKilled[source] and recentlyKilled[source] > GetTime() - killSpamTime then
|
||||||
print("Death already reported")
|
print("Death already reported")
|
||||||
|
return
|
||||||
end
|
end
|
||||||
if overkill <= 0 then return end
|
if overkill <= 0 then return end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user