fix cooldowns trigger
This commit is contained in:
parent
af17c7e1b9
commit
326af8e796
@ -93,6 +93,7 @@ function EventListener:COMBAT_LOG_EVENT_UNFILTERED()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if srcUnit then
|
if srcUnit then
|
||||||
|
if (eventType == "SPELL_CAST_SUCCESS" or eventType == "SPELL_AURA_APPLIED") then
|
||||||
local unitRace = Gladdy.buttons[srcUnit].race
|
local unitRace = Gladdy.buttons[srcUnit].race
|
||||||
-- cooldown tracker
|
-- cooldown tracker
|
||||||
if Gladdy.db.cooldown and Cooldowns.cooldownSpellIds[spellName] then
|
if Gladdy.db.cooldown and Cooldowns.cooldownSpellIds[spellName] then
|
||||||
@ -112,6 +113,7 @@ function EventListener:COMBAT_LOG_EVENT_UNFILTERED()
|
|||||||
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
|
||||||
Gladdy:SpotEnemy(srcUnit, true)
|
Gladdy:SpotEnemy(srcUnit, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user