fix rake detection on bosses
This commit is contained in:
+2
-2
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user