fix rake detection on bosses

This commit is contained in:
pepopo978
2025-10-14 15:20:08 -07:00
parent 38eae64df5
commit 0e8d515ef7
2 changed files with 5 additions and 14 deletions
+2 -2
View File
@@ -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功能来显示战斗中的单位并监视诅咒等
+3 -12
View File
@@ -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