From 8852c85792603df16520846c897feb38ea26b08e Mon Sep 17 00:00:00 2001 From: pepopo978 Date: Wed, 20 Aug 2025 08:43:36 -0700 Subject: [PATCH] add class check --- curses.lua | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/curses.lua b/curses.lua index 9a9d5d4..b85ec7e 100644 --- a/curses.lua +++ b/curses.lua @@ -249,19 +249,23 @@ Cursive:RegisterEvent("UNIT_CASTEVENT", function(casterGuid, targetGuid, event, castDuration = castDuration } - -- track ferocious bite cast time and target - if spellID == 22557 or - spellID == 22568 or - spellID == 22827 or - spellID == 22828 or - spellID == 22829 or - spellID == 31018 then - curses.lastFerociousBiteTime = GetTime() - curses.lastFerociousBiteTargetGuid = targetGuid + if curses.isDruid then + -- track ferocious bite cast time and target + if spellID == 22557 or + spellID == 22568 or + spellID == 22827 or + spellID == 22828 or + spellID == 22829 or + spellID == 31018 then + curses.lastFerociousBiteTime = GetTime() + curses.lastFerociousBiteTargetGuid = targetGuid + end end - if spellID >= 36916 and spellID <= 36921 then - curses.lastMoltenBlastTargetGuid = targetGuid + if curses.isShaman then + if spellID >= 36916 and spellID <= 36921 then + curses.lastMoltenBlastTargetGuid = targetGuid + end end if curses.trackedCurseIds[spellID] then