fix cooldowns trigger

This commit is contained in:
Sumsebrum 2021-06-20 02:30:03 +02:00
parent af17c7e1b9
commit 326af8e796

View File

@ -93,6 +93,7 @@ function EventListener:COMBAT_LOG_EVENT_UNFILTERED()
end
end
if srcUnit then
if (eventType == "SPELL_CAST_SUCCESS" or eventType == "SPELL_AURA_APPLIED") then
local unitRace = Gladdy.buttons[srcUnit].race
-- cooldown tracker
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
Gladdy:SendMessage("RACIAL_USED", srcUnit)
end
end
if not Gladdy.buttons[srcUnit].class then
Gladdy:SpotEnemy(srcUnit, true)