fix cooldowns trigger
This commit is contained in:
parent
af17c7e1b9
commit
326af8e796
@ -93,24 +93,26 @@ function EventListener:COMBAT_LOG_EVENT_UNFILTERED()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if srcUnit then
|
if srcUnit then
|
||||||
local unitRace = Gladdy.buttons[srcUnit].race
|
if (eventType == "SPELL_CAST_SUCCESS" or eventType == "SPELL_AURA_APPLIED") then
|
||||||
-- cooldown tracker
|
local unitRace = Gladdy.buttons[srcUnit].race
|
||||||
if Gladdy.db.cooldown and Cooldowns.cooldownSpellIds[spellName] then
|
-- cooldown tracker
|
||||||
local unitClass
|
if Gladdy.db.cooldown and Cooldowns.cooldownSpellIds[spellName] then
|
||||||
local spellId = Cooldowns.cooldownSpellIds[spellName] -- don't use spellId from combatlog, in case of different spellrank
|
local unitClass
|
||||||
if Gladdy.db.cooldownCooldowns[tostring(spellId)] then
|
local spellId = Cooldowns.cooldownSpellIds[spellName] -- don't use spellId from combatlog, in case of different spellrank
|
||||||
if (Gladdy:GetCooldownList()[Gladdy.buttons[srcUnit].class][spellId]) then
|
if Gladdy.db.cooldownCooldowns[tostring(spellId)] then
|
||||||
unitClass = Gladdy.buttons[srcUnit].class
|
if (Gladdy:GetCooldownList()[Gladdy.buttons[srcUnit].class][spellId]) then
|
||||||
else
|
unitClass = Gladdy.buttons[srcUnit].class
|
||||||
unitClass = Gladdy.buttons[srcUnit].race
|
else
|
||||||
|
unitClass = Gladdy.buttons[srcUnit].race
|
||||||
|
end
|
||||||
|
Cooldowns:CooldownUsed(srcUnit, unitClass, spellId, spellName)
|
||||||
|
Gladdy:DetectSpec(srcUnit, Gladdy.specSpells[spellName])
|
||||||
end
|
end
|
||||||
Cooldowns:CooldownUsed(srcUnit, unitClass, spellId, spellName)
|
|
||||||
Gladdy:DetectSpec(srcUnit, Gladdy.specSpells[spellName])
|
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
if Gladdy.db.racialEnabled and Gladdy:Racials()[unitRace].spellName == spellName and Gladdy:Racials()[unitRace][spellID] then
|
if Gladdy.db.racialEnabled and Gladdy:Racials()[unitRace].spellName == spellName and Gladdy:Racials()[unitRace][spellID] then
|
||||||
Gladdy:SendMessage("RACIAL_USED", srcUnit)
|
Gladdy:SendMessage("RACIAL_USED", srcUnit)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if not Gladdy.buttons[srcUnit].class then
|
if not Gladdy.buttons[srcUnit].class then
|
||||||
|
Loading…
Reference in New Issue
Block a user