Fix issue where GetTime was used instead of time()

This commit is contained in:
2024-03-30 19:24:37 +01:00
parent 169a1c580d
commit ff03b47444
5 changed files with 7 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
-- TICKER_500
function(e)
local timeToKick = aura_env.KickTime - GetTime()
local timeToKick = aura_env.KickTime - time()
if timeToKick > 0 and timeToKick < 60 then
WeakAuras.ScanEvents("PLAY_SOUND", "Interface\\Sounds\\quack.ogg")
SendChatMessage("QUACK", "WHISPER", nil, UnitName("player"))
-- SendChatMessage("QUACK", "WHISPER", nil, UnitName("player"))
end
return aura_env.KickTime > 0
end