diff --git a/Cursive.toc b/Cursive.toc index 47fc3aa..84dda03 100644 --- a/Cursive.toc +++ b/Cursive.toc @@ -1,6 +1,6 @@ ## Interface: 11200 -## Title: [|CFF33AAFFSUPERWOW|R] Cursive 2.5.2 -## Title-zhCN: [|CFF33AAFFSUPERWOW|R] Cursive 2.5.2 +## Title: [|CFF33AAFFSUPERWOW|R] Cursive 2.5.3 +## Title-zhCN: [|CFF33AAFFSUPERWOW|R] Cursive 2.5.3 ## Author: Pepopo ## Notes: Uses SuperWoW GUIDs to show units in combat and track curses ## Notes-zhCN: 使用SuperWoW的GUID功能来显示战斗中的单位并监视诅咒等 diff --git a/curses.lua b/curses.lua index 2d4515e..173e72b 100644 --- a/curses.lua +++ b/curses.lua @@ -600,18 +600,9 @@ function curses:ApplyCurse(spellID, targetGuid, startTime, duration) local rank = curses.trackedCurseIds[spellID].rank if curses.isDruid and name == L["rake"] then - -- check that target has rake debuff - -- some mobs are immune and don't trigger the "spell failed xxx is immune" log - for i = 1, 32 do - local _, _, _, debuffSpellId = UnitDebuff(targetGuid, i) - if debuffSpellId then - if debuffSpellId == spellID then - break - end - else - -- no rake found, don't add curse - return - end + if not curses:ScanGuidForCurse(targetGuid, spellID) then + -- rake not found on target, do not apply + return end end