fix avenging wrath resets Divine Shield to 60s when Divine Shield CD > 60
This commit is contained in:
parent
4583cbdf24
commit
4885e11b10
@ -534,11 +534,21 @@ function Cooldowns:CooldownUsed(unit, unitClass, spellId, expirationTimeInSecond
|
||||
|
||||
for spellID,_ in pairs(cooldown.sharedCD) do
|
||||
if (spellID ~= "cd") then
|
||||
local skip = false
|
||||
for i = 1, button.lastCooldownSpell do
|
||||
local icon = button.spellCooldownFrame["icon" .. i]
|
||||
if (icon.spellId == spellID and icon.active and icon.timeLeft > sharedCD) then
|
||||
skip = true
|
||||
break
|
||||
end
|
||||
end
|
||||
if not skip then
|
||||
self:CooldownStart(button, spellID, sharedCD)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if (Gladdy.db.cooldown) then
|
||||
-- start cooldown
|
||||
|
Loading…
Reference in New Issue
Block a user