Fix issue with hiding afk timer and make it whisper the player

This commit is contained in:
2024-03-23 11:44:21 +01:00
parent b44625a9a0
commit 229c6613cd
3 changed files with 6 additions and 2 deletions

View File

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