From 258e5a047689c8bd11527819b6ac479d04e353ad Mon Sep 17 00:00:00 2001 From: pepopo978 Date: Mon, 27 May 2024 16:49:05 -0700 Subject: [PATCH] add optional resist/expiry sounds --- README.md | 26 +++++++++++ commands.lua | 65 +++++++++++++++++++++------ curses.lua | 54 ++++++++++++++++++++++ sounds/{refresh.mp3 => expiring.mp3} | Bin ui.lua | 17 ++++++- 5 files changed, 148 insertions(+), 14 deletions(-) rename sounds/{refresh.mp3 => expiring.mp3} (100%) diff --git a/README.md b/README.md index fece61e..3b70486 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,39 @@ Cursive combines ShaguScan unit scanning with curse tracking similar to DotTimer and the ability to automatically curse targets similar to Decursive. +## Commands `/cursive` for commands, minimap icon to edit options. +### Curse `/cursive curse |||| GetTime() then return else - this.tick = GetTime() + .8 + this.tick = GetTime() + .2 end if not ui.rootBarFrame then @@ -386,6 +394,13 @@ ui:SetScript("OnUpdate", function() end local active = UnitExists(guid) and Cursive.filter.alive(guid) + if active then + local old = GetTime() - time >= 900 -- >= 15 minutes old + if old and not UnitIsVisible(guid) then + active = false + end + end + if not active then -- remove from core Cursive.core.remove(guid)