Add cleu event for buff applied
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
wow_Meta
|
@@ -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")
|
||||
|
Reference in New Issue
Block a user