Remove throttle and fix bug reporting live players

This commit is contained in:
2024-10-05 19:44:07 +02:00
parent 939be6558a
commit 10a182add6
2 changed files with 2 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -25,14 +25,10 @@ aura_env.whisperQueue = {}
local killSpamTime = 30
local recentlyKilled = {}
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
print("Death already reported")
end
if overkill <= 0 then return end
local faction = "Неизвестная фракция"
if WeakAurasSaved.Cyka.PlayerFactionCache[source] then