Add cleu event for buff applied

This commit is contained in:
2024-12-20 22:38:23 +01:00
parent d2203317a2
commit e0d736f01e
2 changed files with 8 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
wow_Meta

View File

@@ -5,17 +5,21 @@ local addonname, shared = ...
---@field blacklistedBuffs table<string, boolean>
local function init()
print("Dechickenator loaded!")
local cleuFrame = CreateFrame("Frame")
cleuFrame:RegisterEvent("CLEU")
cleuFrame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
cleuFrame:SetScript("OnEvent", function(self, event, ...)
local subevent = CLEUParser.GetSubevent(...)
if subevent == "SPELL_AURA_APPLIED" then
local target = CLEUParser.GetDestName(...)
if target ~= UnitName("player") then return end
local spellName = CLEUParser.GetSpellName(...)
if not shared.Dechickenator_Data.blacklistedBuffs[spellName] then return end
print(spellName)
end
end)
print("Dechickenator loaded!")
end
local loadedFrame = CreateFrame("Frame")