cooldown tracking extended
This commit is contained in:
parent
6161fcc7e3
commit
b714c065f6
@ -146,6 +146,8 @@ function EventListener:COMBAT_LOG_EVENT_UNFILTERED()
|
|||||||
if (Gladdy.buttons[destUnit] and eventType == "UNIT_DIED" or eventType == "PARTY_KILL" or eventType == "SPELL_INSTAKILL") then
|
if (Gladdy.buttons[destUnit] and eventType == "UNIT_DIED" or eventType == "PARTY_KILL" or eventType == "SPELL_INSTAKILL") then
|
||||||
if not Gladdy:isFeignDeath(destUnit) then
|
if not Gladdy:isFeignDeath(destUnit) then
|
||||||
Gladdy:SendMessage("UNIT_DEATH", destUnit)
|
Gladdy:SendMessage("UNIT_DEATH", destUnit)
|
||||||
|
else
|
||||||
|
Cooldowns:CooldownUsed(destUnit, Gladdy.buttons[destUnit].class, 5384)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- spec detection
|
-- spec detection
|
||||||
@ -177,14 +179,14 @@ function EventListener:COMBAT_LOG_EVENT_UNFILTERED()
|
|||||||
if spellID == 16188 or spellID == 17116 then -- Nature's Swiftness (same name for druid and shaman)
|
if spellID == 16188 or spellID == 17116 then -- Nature's Swiftness (same name for druid and shaman)
|
||||||
spellId = spellID
|
spellId = spellID
|
||||||
end
|
end
|
||||||
if Gladdy.db.cooldownCooldowns[tostring(spellId)] then
|
if Gladdy.db.cooldownCooldowns[tostring(spellId)] and (eventType == "SPELL_CAST_SUCCESS" or eventType == "SPELL_MISSED") then
|
||||||
if (Gladdy:GetCooldownList()[Gladdy.buttons[srcUnit].class][spellId]) then
|
if (Gladdy:GetCooldownList()[Gladdy.buttons[srcUnit].class][spellId]) then
|
||||||
unitClass = Gladdy.buttons[srcUnit].class
|
unitClass = Gladdy.buttons[srcUnit].class
|
||||||
else
|
else
|
||||||
unitClass = Gladdy.buttons[srcUnit].race
|
unitClass = Gladdy.buttons[srcUnit].race
|
||||||
end
|
end
|
||||||
if spellID ~= 16188 and spellID ~= 17116 then -- Nature's Swiftness CD starts when buff fades
|
if spellID ~= 16188 and spellID ~= 17116 then -- Nature's Swiftness CD starts when buff fades
|
||||||
Gladdy:Debug("INFO", "SPELL_CAST_SUCCESS - CooldownUsed", srcUnit, "spellID:", spellID)
|
Gladdy:Debug("INFO", eventType, "- CooldownUsed", srcUnit, "spellID:", spellID)
|
||||||
Cooldowns:CooldownUsed(srcUnit, unitClass, spellId)
|
Cooldowns:CooldownUsed(srcUnit, unitClass, spellId)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user