Remove throttle and fix bug reporting live players
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -25,14 +25,10 @@ aura_env.whisperQueue = {}
|
|||||||
local killSpamTime = 30
|
local killSpamTime = 30
|
||||||
local recentlyKilled = {}
|
local recentlyKilled = {}
|
||||||
aura_env.RegisterKill = function(source, destination, spellName, overkill)
|
aura_env.RegisterKill = function(source, destination, spellName, overkill)
|
||||||
if not overkill or overkill <= 0 then
|
|
||||||
print("No overkill, 'death' not reported (probably not dead...)")
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
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")
|
||||||
end
|
end
|
||||||
|
if overkill <= 0 then return end
|
||||||
|
|
||||||
local faction = "Неизвестная фракция"
|
local faction = "Неизвестная фракция"
|
||||||
if WeakAurasSaved.Cyka.PlayerFactionCache[source] then
|
if WeakAurasSaved.Cyka.PlayerFactionCache[source] then
|
||||||
|
Reference in New Issue
Block a user